/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: #172033;
    background: #f5f7fa;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================
   PAGE
========================================= */

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 42% 58%;
}


/* =========================================
   BRAND PANEL
========================================= */

.brand-panel {
    background: #063b2c;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.brand-panel::before {
    content: "";
    position: absolute;

    width: 500px;
    height: 500px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;

    right: -250px;
    top: -120px;
}

.brand-panel::after {
    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;

    left: -400px;
    bottom: -300px;
}

.brand-content {
    width: 100%;
    max-width: 520px;
    padding: 60px;
    margin: auto;
    position: relative;
    z-index: 2;
}


/* =========================================
   BRAND
========================================= */

.brand {
    display: inline-flex;
    align-items: center;

    text-decoration: none;
}

.brand img {
    display: block;

    width: 170px;
    height: auto;

    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 500px) {

    .brand img {
        width: 145px;
    }

}


/* =========================================
   BRAND MESSAGE
========================================= */

.brand-message {
    margin-top: 170px;
}

.brand-message h1 {
    font-size: clamp(42px, 4vw, 64px);
    line-height: 1.05;
    letter-spacing: -2.5px;
    font-weight: 700;
}

.brand-message p {
    max-width: 400px;

    margin-top: 25px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================
   SECURITY NOTE
========================================= */

.security-note {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-top: 55px;

    padding-top: 25px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.security-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(185, 231, 105, 0.15);
    color: #b9e769;

    font-weight: 700;
}

.security-note strong {
    font-size: 14px;
}

.security-note p {
    margin-top: 3px;

    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}


/* =========================================
   FORM PANEL
========================================= */

.form-panel {
    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px 30px;
}

.form-container {
    width: 100%;
    max-width: 470px;
}


/* =========================================
   MOBILE BRAND
========================================= */

.mobile-brand {
    display: none;
    margin-bottom: 50px;
}


/* =========================================
   HEADER
========================================= */

.form-header {
    margin-bottom: 35px;
}

.welcome {
    display: inline-block;

    margin-bottom: 10px;

    color: #557060;

    font-size: 14px;
    font-weight: 600;
}

.form-header h2 {
    font-size: 32px;
    line-height: 1.2;

    letter-spacing: -1px;

    color: #172033;
}

.form-header p {
    margin-top: 10px;

    color: #687385;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================
   FORM
========================================= */

.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 23px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: #263143;

    font-size: 13px;
    font-weight: 600;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forgot-link {
    color: #176b4d;

    font-size: 12px;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}


/* =========================================
   INPUTS
========================================= */

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    height: 52px;

    padding: 0 15px;

    border: 1px solid #d8dee6;
    border-radius: 7px;

    outline: none;

    background: #ffffff;

    color: #172033;

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #a0a8b5;
}

.form-group input:focus {
    border-color: #176b4d;

    box-shadow:
        0 0 0 3px rgba(23, 107, 77, 0.10);
}


/* =========================================
   PASSWORD
========================================= */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 65px !important;
}

.password-toggle {
    position: absolute;

    right: 13px;
    top: 50%;

    transform: translateY(-50%);

    border: none;
    background: transparent;

    color: #176b4d;

    cursor: pointer;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
}


/* =========================================
   REMEMBER
========================================= */

.remember-row {
    margin-top: -3px;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #687385;

    font-size: 13px;

    cursor: pointer;
}

.checkbox-label input {
    width: 16px;
    height: 16px;

    accent-color: #176b4d;

    cursor: pointer;
}


/* =========================================
   SUBMIT BUTTON
========================================= */

.submit-button {
    width: 100%;
    height: 53px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    border: none;
    border-radius: 7px;

    background: #176b4d;
    color: white;

    cursor: pointer;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.submit-button span {
    font-size: 19px;
    line-height: 0;
}

.submit-button:hover {
    background: #10543b;
}

.submit-button:active {
    transform: translateY(1px);
}


/* =========================================
   DIVIDER
========================================= */

.divider {
    display: flex;
    align-items: center;
    gap: 15px;

    margin: 30px 0;

    color: #a2aab5;

    font-size: 12px;
}

.divider::before,
.divider::after {
    content: "";

    height: 1px;

    flex: 1;

    background: #e5e8ec;
}


/* =========================================
   REGISTER
========================================= */

.register-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    color: #687385;

    font-size: 13px;
}

.register-prompt a {
    color: #176b4d;
    font-weight: 700;
}

.register-prompt a:hover {
    text-decoration: underline;
}


/* =========================================
   SECURITY
========================================= */

.footer-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 35px;

    color: #89929e;

    font-size: 11px;
}

.lock-icon {
    font-size: 10px;
}


/* =========================================
   FOOTER
========================================= */

.form-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 17px;

    margin-top: 30px;

    padding-top: 20px;

    border-top: 1px solid #edf0f2;

    color: #9aa2ad;

    font-size: 11px;
}

.form-footer a:hover {
    color: #176b4d;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .auth-page {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        display: none;
    }

    .mobile-brand {
        display: block;
    }

    .form-panel {
        min-height: 100vh;
    }

}


@media (max-width: 500px) {

    .form-panel {
        padding: 35px 20px;
        align-items: flex-start;
    }

    .form-container {
        padding-top: 10px;
    }

    .mobile-brand {
        margin-bottom: 70px;
    }

    .form-header h2 {
        font-size: 27px;
    }

    .register-prompt {
        flex-direction: column;
        gap: 7px;
    }

    .form-footer {
        gap: 12px;
    }

}