@charset "UTF-8";

:root {
    --auth-navy: #0f1f35;
    --auth-navy-soft: #162a47;
    --auth-accent: #7bc11f;
    --auth-accent-dark: #5fa015;
    --auth-accent-glow: rgba(123, 193, 31, 0.35);
    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-surface: #ffffff;
    --auth-bg: #f4f7fb;
    --auth-footer-height: 2.85rem;
    --auth-radius: 16px;
    --auth-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body.auth-page {
    height: 100%;
    margin: 0;
}

body.auth-page {
    font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--auth-text);
    background: var(--auth-bg);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    height: calc(100vh - var(--auth-footer-height));
    min-height: 0;
}

/* ---- Left panel (full image) ---- */
.auth-side {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #eef2f6;
    overflow: hidden;
    min-height: 0;
}

.auth-side__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

/* ---- Right panel ---- */
.auth-main {
    order: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.75rem;
    min-height: 0;
    overflow: hidden;
}

.auth-main__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(123, 193, 31, 0.08), transparent 35%),
        radial-gradient(circle at 10% 90%, rgba(15, 31, 53, 0.06), transparent 40%),
        linear-gradient(180deg, #f8fafc 0%, var(--auth-bg) 100%);
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 27rem;
    padding: 1.85rem 1.95rem 1.65rem;
    background: var(--auth-surface);
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--auth-shadow);
}

.auth-card--wide {
    max-width: 31rem;
    padding: 1.45rem 1.65rem 1.35rem;
}

.auth-card__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

.auth-card__logo {
    max-width: 168px;
    height: auto;
}

.auth-card__product {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--auth-muted);
}

.auth-card__title {
    margin: 0 0 0.3rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--auth-text);
}

.auth-card__subtitle {
    margin: 0 0 1.15rem;
    text-align: center;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--auth-muted);
}

.auth-card--wide .auth-card__subtitle {
    margin-bottom: 0.8rem;
    font-size: 0.82rem;
}

/* ---- Form elements ---- */
.auth-form-group {
    margin-bottom: 0.8rem;
}

.auth-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.auth-form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
}

.auth-field {
    position: relative;
}

.auth-field__icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.82rem;
    pointer-events: none;
    z-index: 1;
}

.auth-input {
    width: 100%;
    padding: 0.72rem 0.85rem 0.72rem 2.35rem;
    border: 1px solid var(--auth-border);
    border-radius: 11px;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--auth-text);
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input--plain {
    padding-left: 0.85rem;
}

.auth-input:focus {
    outline: none;
    border-color: var(--auth-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(123, 193, 31, 0.14);
}

.auth-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.auth-input-wrap .auth-input {
    padding-right: 2.6rem;
}

.auth-password-toggle {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
}

.auth-password-toggle:hover {
    color: var(--auth-navy);
    background: #f1f5f9;
}

.auth-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.2rem 0 1rem;
    font-size: 0.8rem;
}

.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--auth-muted);
}

.auth-checkbox input {
    margin-top: 0.12rem;
    accent-color: var(--auth-accent);
    flex-shrink: 0;
}

.auth-checkbox a {
    color: var(--auth-navy-soft);
    font-weight: 600;
    text-decoration: none;
}

.auth-checkbox a:hover {
    color: var(--auth-accent-dark);
    text-decoration: underline;
}

.auth-link {
    color: var(--auth-accent-dark);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    color: var(--auth-accent);
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.82rem 1rem;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-dark) 100%);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(123, 193, 31, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(123, 193, 31, 0.34);
}

.auth-btn i {
    font-size: 0.82rem;
}

.auth-card__footer {
    margin-top: 1rem;
    padding-top: 0.95rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 0.82rem;
    color: var(--auth-muted);
}

.auth-card__note {
    margin: 0 0 0.85rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid var(--auth-border);
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--auth-muted);
    text-align: center;
}

.auth-card__note a {
    color: var(--auth-accent-dark);
    font-weight: 700;
    text-decoration: none;
}

.auth-card__note a:hover {
    text-decoration: underline;
}

.auth-card--wide .auth-form-group {
    margin-bottom: 0.55rem;
}

.auth-card--wide .auth-checkbox {
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
}

label.error {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.72rem;
    color: #ef4444;
}

/* ---- Footer ---- */
.auth-footer {
    height: var(--auth-footer-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.5rem;
    border-top: 1px solid var(--auth-border);
    background: #fff;
    font-size: 0.7rem;
    color: var(--auth-muted);
}

.auth-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
}

.auth-footer__links a {
    color: var(--auth-muted);
    text-decoration: none;
    white-space: nowrap;
}

.auth-footer__links a:hover {
    color: var(--auth-navy);
    text-decoration: underline;
}

.auth-footer__copy {
    white-space: nowrap;
}

@media (max-width: 960px) {
    body.auth-page {
        overflow: auto;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        height: auto;
        min-height: calc(100vh - var(--auth-footer-height));
    }

    .auth-main {
        order: 1;
        padding: 1rem 1rem 0.75rem;
        overflow: visible;
    }

    .auth-side {
        order: 2;
        min-height: auto;
        height: auto;
        padding: 0;
    }

    .auth-side__image {
        width: 100%;
        height: auto;
        max-height: none;
    }
}

@media (max-width: 640px) {
    .auth-form-row {
        grid-template-columns: 1fr;
    }

    .auth-footer {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        height: auto;
        padding: 0.65rem 1rem;
        gap: 0.35rem;
    }

    .auth-card,
    .auth-card--wide {
        padding: 1.25rem 1.1rem 1.1rem;
        border-radius: 16px;
    }

    .auth-form-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}
