﻿@import url('./design-system.css');

#myBtn {
    display: flex;
    position: fixed;
    bottom: 50px;
    right: 30px;
    height: 40px;
    z-index: 99;
    font-size: 18px;
    border: none;
    vertical-align: middle;
    outline: none;
    padding: 10px;
    background-color: transparent;
    background: rgba(0,0,0,0.2);
    color: white;
    cursor: pointer;
    border-radius: 2px;
    margin-bottom: -12rem;
    transition: 0.5s;
}

    #myBtn:hover {
        background: rgba(0,0,0,0.4);
    }

    #myBtn.active {
        margin-bottom: 0;
    }

html, body {
    height: 100%;
}

    body::before {
        content: "";
        position: fixed;
        inset: -15px;
        background: url("/Image/building.jpeg") no-repeat center center;
        background-size: cover;
        filter: blur(8px);
        z-index: -2;
    }

    body::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.15);
        z-index: -1;
    }

.hidden {
    display: none !important;
}

.parentDiv {
    height: 100vh;
    overflow: hidden;
    overflow-y:auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 15px;
    padding-bottom: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-sizing: border-box;
}

.childDiv {
    margin: auto;
    width: 960px;
}

.strength-bar {
    height: 3px;
    margin-top: 6px;
    border-radius: 4px;
    background: #e0e0e0;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: .3s;
}

.message {
    margin-top: 3px;
    font-size: 10px;
}

.modal_full_ {
    display: none;
    position: fixed;
    z-index: 162;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.5);
}

.otp-container {
    width: fit-content;
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    text-align: center;
}

    .otp-container h4 {
        margin-bottom: 10px;
        color: #333;
    }

    .otp-container p {
        color: #777;
        font-size: 14px;
        margin-bottom: 25px;
    }

.otp-inputs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 35px;
}

    .otp-inputs input {
        width: 45px;
        height: 55px;
        border: 2px solid #ddd;
        border-radius: 10px;
        text-align: center;
        font-size: 22px;
        font-weight: bold;
        outline: none;
        transition: 0.3s;
    }

        .otp-inputs input:focus {
            border-color: #007bff;
            box-shadow: 0 0 5px rgba(0,123,255,0.3);
        }

.verify-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #007bff;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

    .verify-btn:hover {
        background: #0056b3;
    }

.resend {
    margin-top: 18px;
    font-size: 14px;
    color: #666;
}

    .resend a {
        color: #007bff;
        text-decoration: none;
        font-weight: bold;
    }

        .resend a:hover {
            text-decoration: underline;
        }

.modal-error {
    border: 1px solid dimgray;
    min-width: 300px;
    max-height: 300px;
    background-color: indianred;
    color: white;
    border-radius: 3px;
    max-width: 300px;
    display: block;
    position: fixed;
    text-align: center;
    top: 20px;
    padding: 15px;
    z-index: 1600;
    transition: 1.1s;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    top: -50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-success {
    border: 1px solid dimgray;
    min-width: 300px;
    max-height: 300px;
    background-color: forestgreen;
    color: white;
    border-radius: 3px;
    max-width: 300px;
    display: block;
    position: fixed;
    text-align: center;
    top: 20px;
    padding: 15px;
    z-index: 1600;
    transition: 1.1s;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    top: -50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-saving {
    border: 1px solid dimgray;
    min-width: 300px;
    max-height: 300px;
    background-color: dodgerblue;
    color: white;
    border-radius: 3px;
    max-width: 300px;
    display: block;
    position: fixed;
    text-align: center;
    top: 20px;
    padding: 15px;
    z-index: 1600;
    transition: 1.1s;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    top: -50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.div-container {
    background-color: white;
    width: 960px;
    height: 650px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    padding: 0;
    transition: 0.5s;
    margin-bottom: 0;
    box-sizing: border-box;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
}

.left-panel {
    background-color: whitesmoke;
    display: flex;
    padding: 0;
    height: 100%;
    overflow: hidden;
    align-self: stretch;
}

.left-panel-logo {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    height: 100%;
    width: 100%;
}

    .left-panel-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

#div-login-account,
#div-create-account {
    background-color: white;
    padding: 20px 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

#div-create-account {
    justify-content: flex-start;
    padding-top: 16px;
}

.div-header {
    text-align: center;
    margin-bottom: 6px;
}

.header-logo {
    width: 85px;
    height: auto;
    display: block;
    margin: 0 auto 8px;
}

.welcome-title {
    color: #111827;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 4px;
}

.welcome-subtitle {
    color: #4b5563;
    font-weight: normal;
    font-size: 13px;
    margin-bottom: 16px;
}

.label-remember {
    cursor: pointer;
    display: inline-block;
    color: dimgray;
    font-weight: normal;
    font-size: 12px;
}

.blue-overlay {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(1, 53, 111, 0.76)
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    font-size: 14px;
    z-index: 2;
}

.input-pill {
    height: 44px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding-left: 42px;
    padding-right: 16px;
    font-size: 14px;
    transition:0.5s;
}

    .input-pill:focus {
        background-color: #ffffff;
        border-color: #01356f;
        box-shadow: 0 0 0 2px rgba(1, 53, 111, 0.15);
        outline: none;
    }

.input-pill-n {
    height: 44px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding-left: 16px;
    padding-right: 16px;
    font-size: 14px;
    transition: 0.5s;
}

    .input-pill-n:focus {
        background-color: #ffffff;
        border-color: #01356f;
        box-shadow: 0 0 0 2px rgba(1, 53, 111, 0.15);
        outline: none;
    }

.forgot-link {
    color: #C10007;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

#btn-create {
    background-color: #ffffff;
    outline: none;
    border: none;
    transition: 0.5s;
    display: inline-block;
    font-size: 12px;
    color: dodgerblue;
    font-weight: bold;
    cursor: pointer;
}

    #btn-create:hover {
        color: royalblue;
    }

.btn-green {
        background: linear-gradient(135deg, var(--brand), var(--brand-dark));
        border: none;
        color: #fff;
        font-weight: 700;
        padding: 12px 30px;
        border-radius: var(--radius-sm);
        box-shadow: 0 8px 20px rgba(230, 41, 30, .3);
        transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .btn-green:hover {
        color: #01356f;
        background-color: #ffffff;
    }

    .btn-green:active {
        background-color: #01356f;
        color: #ffffff;
    }

    .btn-green-1 {
        height: 40px;
        background-color: #ffffff;
        color: #008080;
        font-weight: bold;
        font-size: 16px;
        border: 1px solid #25503E;
        border-radius: 5px;
        width: 100%;
        transition: 0.5s;
        cursor: pointer;
    }

        .btn-green-1:hover {
            color: #ffffff;
            background-color: #25503E;
        }

    #chk_remember {
        cursor: pointer;
        display: inline-block;
        margin-right: 5px;
        width: 15px;
        height: 15px;
        position: relative;
        top: 1px;
    }

    .fa-eye {
        color: #022255;
        cursor: pointer;
    }

    .show-pass {
        position: absolute;
        top: 11px;
        right: 16px;
        z-index: 1111;
    }

    .label-input {
        position: absolute;
        top: 13px;
        left: 10px;
        font-weight: normal;
        transition: 0.5s;
        user-select: none;
        cursor: text;
        background: #ffffff;
        padding-left: 5px;
        padding-right: 5px;
    }

    .entryarea {
        position: relative;
        height: 45px;
        line-height: 45px;
    }

    .input-area {
        min-height: 45px;
        position: absolute;
        width: 100%;
        outline: none;
        font-size: 14px;
        padding: 0 15px;
        line-height: 20px;
        border-radius: 5px;
        background-color: transparent;
        transition: 0.3s ease;
        border: 1px solid gainsboro;
        z-index: 1111;
    }

    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    input:-webkit-autofill:active {
        transition: background-color 5000s ease-in-out 0s;
    }

    .input-error {
        border: 1px solid indianred;
    }

    .input-area:focus {
        border: 1px solid dodgerblue;
        box-shadow: 0 0 5px rgba(81, 203, 238, 1);
    }

        .input-area:focus + .labelline, .input-area:valid + .labelline {
            z-index: 1111;
            top: 7px;
            padding-left: 9px;
            padding-right: 9px;
            padding-bottom: -10px;
            padding-top: 0px;
            line-height: 20px;
            background-color: #ffffff;
            margin: 0 18px;
            transform: translate(-15px,-16px) scale(0.88);
        }

    .labelline {
        position: absolute;
        font-size: 14px;
        padding: 0 5px;
        margin: 0 10px;
        color: dimgray;
        transition: 0.3s ease;
        user-select: none;
        background-color: transparent;
    }

    .btn-cancel {
        height: 40px;
        background-color: #ffffff;
        color: dimgray;
        font-weight: bold;
        font-size: 16px;
        border: 1px solid dimgray;
        border-radius: 5px;
        width: 100%;
        transition: 0.5s;
        cursor: pointer;
    }

        .btn-cancel:hover {
            background-color: gainsboro;
        }

    /* Create-account form: compact spacing so it fits in one screen, no scrollbars */
    #div-create-account form p {
        margin: 0 0 8px 0;
    }

    #div-create-account .stat {
        color: dimgray;
        cursor: pointer;
        margin-bottom: 2px;
        font-size: 13px;
    }

        #div-create-account .stat:hover {
            color: #01356f;
        }

    @media only screen and (max-width: 850px) {
        .childDiv {
            width: 400px !important;
        }

        .parentDiv {
            padding-top: 20px;
            padding-bottom: 20px;
            overflow-y: auto;
        }

        .left-panel {
            display: none;
        }

        .div-container {
            width: 400px;
            height: auto;
            min-height: 550px;
            border-radius: 10px;
        }

    #div-login-account,
    #div-create-account {
        padding: 30px 25px;
        overflow-y: auto;
    }
}