/* ================================================================
   CBC 3.0 LOGIN PAGE
================================================================ */

.login-page {
    min-height: calc(100vh - 120px);

    padding: 55px 30px;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(47, 143, 109, 0.10),
            transparent 30%
        ),
        #f4f8f6;

    display: flex;
    align-items: center;
    justify-content: center;
}


.login-wrapper {

    width: 100%;
    max-width: 1180px;

    min-height: 690px;

    display: grid;

    grid-template-columns:
        45% 55%;

    background: #ffffff;

    border-radius: 28px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(10, 58, 45, 0.15);
}


/* ================================================================
   LEFT BRAND PANEL
================================================================ */

.login-brand-panel {

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #0b4738 0%,
            #155f49 55%,
            #0b4938 100%
        );

    color: #ffffff;
}


.login-brand-overlay {

    position: absolute;

    width: 420px;
    height: 420px;

    top: -160px;
    right: -180px;

    border-radius: 50%;

    background:
        rgba(74, 221, 169, 0.10);
}


.login-brand-overlay::after {

    content: "";

    position: absolute;

    width: 270px;
    height: 270px;

    top: 110px;
    left: -80px;

    border-radius: 50%;

    border: 1px solid
        rgba(255,255,255,0.10);
}


.login-brand-content {

    position: relative;

    z-index: 2;

    padding: 75px 55px;

    height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.login-brand-label {

    color: #f2c94c;

    font-family:
        'IBM Plex Mono',
        monospace;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 3px;

    margin-bottom: 30px;
}


.login-brand-content h1 {

    margin: 0;

    font-family:
        'Lora',
        serif;

    font-size: clamp(
        52px,
        5vw,
        72px
    );

    line-height: 1.02;

    font-weight: 600;

    letter-spacing: -2px;
}


.login-brand-content h1 span {

    display: block;

    color: #5fe0b1;
}


.login-brand-description {

    max-width: 390px;

    margin-top: 30px;

    color:
        rgba(255,255,255,0.76);

    font-family:
        'Poppins',
        sans-serif;

    font-size: 14px;

    line-height: 1.9;
}


/* ================================================================
   BENEFITS
================================================================ */

.login-benefits {

    margin-top: 38px;

    display: flex;

    flex-direction: column;

    gap: 23px;
}


.login-benefit {

    display: flex;

    align-items: flex-start;

    gap: 15px;
}


.login-benefit-icon {

    flex-shrink: 0;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    border: 1px solid
        rgba(95,224,177,0.45);

    background:
        rgba(95,224,177,0.10);

    color: #5fe0b1;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 15px;

    font-weight: 600;
}


.login-benefit strong {

    display: block;

    color: #ffffff;

    font-family:
        'Poppins',
        sans-serif;

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 3px;
}


.login-benefit p {

    margin: 0;

    color:
        rgba(255,255,255,0.60);

    font-size: 11px;

    line-height: 1.5;
}


/* ================================================================
   DECORATION
================================================================ */

.login-decoration {

    position: absolute;

    bottom: 35px;
    right: 45px;

    display: flex;

    gap: 8px;
}


.login-decoration span {

    display: block;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #5fe0b1;

    opacity: 0.6;
}


.login-decoration span:nth-child(2) {

    opacity: 0.35;

}


.login-decoration span:nth-child(3) {

    opacity: 0.15;

}


/* ================================================================
   RIGHT FORM PANEL
================================================================ */

.login-form-panel {

    display: flex;

    align-items: center;

    justify-content: center;

    background: #ffffff;
}


.login-form-container {

    width: 100%;

    max-width: 460px;

    padding: 55px 60px;
}


.login-form-header {

    margin-bottom: 32px;
}


.login-mobile-brand {

    display: none;
}


.login-eyebrow {

    font-family:
        'IBM Plex Mono',
        monospace;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 3px;

    color: #16775b;

    margin-bottom: 12px;
}


.login-form-header h2 {

    margin: 0;

    color: #083f31;

    font-family:
        'Lora',
        serif;

    font-size: 36px;

    line-height: 1.2;

    font-weight: 600;
}


.login-form-header p {

    margin: 12px 0 0;

    color: #758a84;

    font-family:
        'Poppins',
        sans-serif;

    font-size: 13px;

    line-height: 1.7;
}


/* ================================================================
   ALERTS
================================================================ */

.login-alert {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 13px 15px;

    margin-bottom: 24px;

    border-radius: 10px;

    font-family:
        'Poppins',
        sans-serif;

    font-size: 12px;

    line-height: 1.5;
}


.login-alert-icon {

    flex-shrink: 0;

    width: 22px;
    height: 22px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 11px;

    font-weight: 700;
}


.login-alert-success {

    background: #effaf5;

    border: 1px solid #c7ecda;

    color: #176747;
}


.login-alert-success
.login-alert-icon {

    background: #279b70;

    color: #ffffff;
}


.login-alert-error {

    background: #fff3f3;

    border: 1px solid #f3cccc;

    color: #a32929;
}


.login-alert-error
.login-alert-icon {

    background: #c94141;

    color: #ffffff;
}


.login-alert ul {

    margin: 5px 0 0;

    padding-left: 17px;
}


/* ================================================================
   FORM
================================================================ */

.login-form {

    display: flex;

    flex-direction: column;

    gap: 22px;
}


.login-field {

    width: 100%;
}


.login-field label,
.login-password-label label {

    display: block;

    margin-bottom: 8px;

    color: #183f35;

    font-family:
        'Poppins',
        sans-serif;

    font-size: 12px;

    font-weight: 600;
}


.login-field label span,
.login-password-label label span {

    color: #d34b4b;
}


.login-password-label {

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.login-password-label label {

    margin-bottom: 8px;
}


.forgot-password {

    font-family:
        'Poppins',
        sans-serif;

    font-size: 11px;

    color: #238363;

    text-decoration: none;

    margin-bottom: 8px;
}


.forgot-password:hover {

    text-decoration: underline;
}


/* ================================================================
   INPUTS
================================================================ */

.login-input-wrapper {

    position: relative;

    width: 100%;
}


.login-input-wrapper input {

    width: 100%;

    height: 54px;

    box-sizing: border-box;

    padding:
        0 75px 0 48px;

    border: 1px solid #d7e3df;

    border-radius: 10px;

    background: #fbfdfc;

    color: #163f34;

    font-family:
        'Poppins',
        sans-serif;

    font-size: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.login-input-wrapper input::placeholder {

    color: #a5b5b0;
}


.login-input-wrapper input:focus {

    border-color: #2b9671;

    background: #ffffff;

    box-shadow:
        0 0 0 4px
        rgba(43,150,113,0.08);
}


.login-input-icon {

    position: absolute;

    left: 17px;

    top: 50%;

    transform:
        translateY(-50%);

    width: 22px;

    color: #4a9178;

    font-family:
        'IBM Plex Mono',
        monospace;

    font-size: 14px;

    font-weight: 600;

    z-index: 2;
}


/* ================================================================
   PASSWORD TOGGLE
================================================================ */

.password-toggle {

    position: absolute;

    right: 13px;

    top: 50%;

    transform:
        translateY(-50%);

    border: none;

    background: transparent;

    color: #238363;

    font-family:
        'Poppins',
        sans-serif;

    font-size: 11px;

    font-weight: 600;

    cursor: pointer;

    padding: 5px;
}


.password-toggle:hover {

    color: #0b5942;

}


/* ================================================================
   REMEMBER ME
================================================================ */

.login-options {

    margin-top: -4px;
}


.remember-me {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    cursor: pointer;

    color: #6d817b;

    font-family:
        'Poppins',
        sans-serif;

    font-size: 11px;
}


.remember-me input {

    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.remember-check {

    width: 17px;
    height: 17px;

    border: 1px solid #cbdad5;

    border-radius: 4px;

    background: #ffffff;

    position: relative;

    transition: 0.2s ease;
}


.remember-me input:checked
+ .remember-check {

    background: #238363;

    border-color: #238363;
}


.remember-me input:checked
+ .remember-check::after {

    content: "✓";

    position: absolute;

    left: 3px;
    top: -1px;

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;
}


/* ================================================================
   LOGIN BUTTON
================================================================ */

.login-submit {

    width: 100%;

    height: 56px;

    margin-top: 3px;

    border: none;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #0c6148,
            #238c69
        );

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    font-family:
        'Poppins',
        sans-serif;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 10px 25px
        rgba(21,111,82,0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.login-submit:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 15px 30px
        rgba(21,111,82,0.27);
}


.login-submit-arrow {

    font-size: 18px;

    transition:
        transform 0.2s ease;
}


.login-submit:hover
.login-submit-arrow {

    transform:
        translateX(4px);
}


/* ================================================================
   REGISTER
================================================================ */

.login-register {

    margin-top: 34px;
}


.login-divider {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 18px;
}


.login-divider span {

    height: 1px;

    flex: 1;

    background: #e6eeeb;
}


.login-divider em {

    color: #9aaba6;

    font-family:
        'Poppins',
        sans-serif;

    font-size: 10px;

    font-style: normal;

    white-space: nowrap;
}


.register-link {

    width: 100%;

    min-height: 50px;

    box-sizing: border-box;

    padding: 0 17px;

    border: 1px solid #d6e4df;

    border-radius: 9px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: #17694f;

    text-decoration: none;

    font-family:
        'Poppins',
        sans-serif;

    font-size: 12px;

    font-weight: 500;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.register-link:hover {

    border-color: #65ae95;

    background: #f5faf8;

    transform:
        translateY(-1px);
}


.register-link strong {

    font-size: 18px;

    font-weight: 400;
}


/* ================================================================
   SECURITY NOTE
================================================================ */

.login-security-note {

    margin-top: 25px;

    text-align: center;

    color: #9aa9a5;

    font-family:
        'Poppins',
        sans-serif;

    font-size: 10px;
}


.login-security-note span {

    margin-right: 4px;
}


/* ================================================================
   RESPONSIVE
================================================================ */

@media (max-width: 950px) {

    .login-wrapper {

        grid-template-columns: 1fr;

        max-width: 600px;

        min-height: auto;
    }


    .login-brand-panel {

        min-height: 350px;
    }


    .login-brand-content {

        padding: 45px;
    }


    .login-brand-content h1 {

        font-size: 50px;
    }


    .login-benefits {

        display: none;
    }


    .login-decoration {

        bottom: 25px;
    }

}


@media (max-width: 600px) {

    .login-page {

        padding: 25px 15px;
    }


    .login-wrapper {

        border-radius: 18px;
    }


    .login-brand-panel {

        min-height: 280px;
    }


    .login-brand-content {

        padding: 35px 28px;
    }


    .login-brand-content h1 {

        font-size: 44px;

        letter-spacing: -1px;
    }


    .login-brand-description {

        margin-top: 18px;

        font-size: 12px;

        line-height: 1.7;
    }


    .login-form-container {

        padding: 40px 28px;
    }


    .login-form-header h2 {

        font-size: 30px;
    }

}
