* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: #ffffff;
}

.auth-page {
    min-height: 100vh;
    display: flex;
}


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

.auth-brand-panel {
    width: 50%;
    min-height: 100vh;

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

    position: relative;
    overflow: hidden;

    color: white;

    background: linear-gradient(145deg, #101b2d 0%, #172a41 62%, #1d4d59 100%);
}

.auth-brand-content {
    width: 100%;
    max-width: 500px;
    padding: 40px;
    text-align: center;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.auth-brand-copy {
    text-align: left;
}

.auth-brand-name {
    display: block;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.auth-logo-mark {
    width: 130px;
    height: 130px;
    flex: 0 0 auto;
    object-fit: contain;
}

.auth-tagline {
    font-size: 12px;
    line-height: 1.6;
    font-weight: 500;
    margin: 0;
}

.auth-copyright {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;

    text-align: center;

    font-size: 14px;
    font-weight: 500;
}


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

.auth-form-panel {
    width: 50%;
    min-height: 100vh;

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

    background: #ffffff;
    padding: 40px;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 510px;
}


/* =========================
    TITLE
========================= */

.auth-title {
    color: #17263a;
    font-size: 25px;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 25px;
}


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

.auth-field {
    position: relative;
    margin-bottom: 14px;
}

.auth-field-icon {
    position: absolute;
    left: 16px;
    top: 50%;

    transform: translateY(-50%);

    color: #b78938;

    font-size: 18px;

    pointer-events: none;

    z-index: 2;
}

.auth-input {
    width: 100%;
    height: 50px;

    border: none;
    border-radius: 5px;

    background: #f6f3ec;

    padding: 0 48px;

    color: #1f2937;
    font-size: 14px;

    outline: none;

    transition: .2s;
}

.auth-input:focus {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(189, 145, 64, .2);
}

.auth-input::placeholder {
    color: #7b8798;
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;

    transform: translateY(-50%);

    border: none;
    background: transparent;

    color: #68758a;

    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}


/* =========================
    LINKS
========================= */

.auth-link {
    color: #87601f;
    text-decoration: none;
}

.auth-link:hover {
    color: #624515;
    text-decoration: underline;
}

.auth-forgot {
    display: inline-block;
    margin-top: 3px;

    font-size: 14px;
}


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

.auth-button {
    width: 100%;
    height: 40px;

    border: none;
    border-radius: 4px;

    background: #d6ad5d;
    color: #172337;

    font-weight: 600;
    font-size: 14px;

    margin-top: 20px;

    transition: .2s;
}

.auth-button:hover {
    background: #c59a46;
}


/* =========================
    BOTTOM LINK
========================= */

.auth-register-text {
    text-align: center;
    margin-top: 9px;

    font-size: 14px;
    color: #596579;
}


/* =========================
    VALIDATION
========================= */

.auth-error {
    font-size: 13px;
    margin-top: 5px;
    color: #dc3545;
}

.auth-alert {
    font-size: 14px;
    margin-bottom: 18px;
}


/* =========================
    MOBILE
========================= */

@media (max-width: 767.98px) {

    .auth-page {
        display: block;
    }

    .auth-brand-panel {
        width: 100%;
        min-height: 180px;
    }

    .auth-brand-content {
        padding: 25px 20px;
    }

    .auth-logo {
        margin-bottom: 8px;
        gap: 8px;
    }

    .auth-brand-name {
        font-size: 30px;
    }

    .auth-logo-mark {
        width: 42px;
        height: 42px;
    }

    .auth-tagline {
        font-size: 14px;
    }

    .auth-copyright {
        display: none;
    }

    .auth-form-panel {
        width: 100%;
        min-height: calc(100vh - 180px);
        padding: 30px 20px;
        align-items: flex-start;
    }

    .auth-form-wrapper {
        max-width: 100%;
    }

    .auth-title {
        font-size: 22px;
    }
}
