/* ─── Auth Layout ─── */
*,
*::before,
*::after { box-sizing: border-box; }

.auth-body {
    min-height: 100vh;
    margin: 0;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background: #fafaf8;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}

/* ─── Split Layout ─── */
.auth-layout {
    display: flex;
    min-height: 100vh;
}

/* ─── Brand Panel (Left) ─── */
.auth-brand-panel {
    display: none;
    position: relative;
    width: 44%;
    min-height: 100vh;
    background: #032D0E;
    overflow: hidden;
}

.auth-brand-panel__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 3rem;
}

.auth-brand-panel__logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.3));
}

.auth-brand-panel__tagline {
    margin-top: 1.25rem;
}

.auth-brand-panel__tagline p {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(212, 201, 171, 0.7);
    margin: 0;
}

.auth-brand-panel__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(4, 61, 16, 0.6) 0%, rgba(3, 45, 14, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

/* Subtle geometric accent */
.auth-brand-panel::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -30%;
    width: 80%;
    height: 140%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(94, 200, 180, 0.06) 0%, transparent 70%);
    z-index: 0;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -20%;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(213, 199, 169, 0.05) 0%, transparent 70%);
    z-index: 0;
}

/* ─── Form Panel (Right) ─── */
.auth-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    position: relative;
    background: #fafaf8;
}

.auth-form-panel__inner {
    width: 100%;
    max-width: 380px;
}

/* ─── Mobile Logo ─── */
.auth-mobile-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.auth-mobile-logo img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

/* ─── Form Header ─── */
.auth-form-header {
    margin-bottom: 2rem;
}

.auth-form-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: #0f1f13;
    margin: 0 0 0.375rem 0;
    letter-spacing: -0.025em;
}

.auth-form-subtitle {
    font-size: 0.875rem;
    color: #6b7c6f;
    margin: 0;
    font-weight: 400;
}

/* ─── Alerts ─── */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.auth-alert svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.auth-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* ─── Form Elements ─── */
.auth-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1a2b1e;
    letter-spacing: 0.01em;
    margin-bottom: 0.375rem;
    display: block;
}

.auth-input {
    width: 100%;
    background: #ffffff !important;
    border: 1.5px solid #e0e5e1 !important;
    border-radius: 10px;
    padding: 0.6875rem 0.875rem;
    font-size: 0.875rem;
    color: #1a1a1a !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: #043d10 !important;
    box-shadow: 0 0 0 3px rgba(4, 61, 16, 0.08) !important;
}

.auth-input::placeholder {
    color: #a3b0a6;
}

.auth-input.is-invalid {
    border-color: #dc2626 !important;
}

/* ─── Links ─── */
.auth-forgot {
    font-size: 0.75rem;
    font-weight: 500;
    color: #043d10;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-forgot:hover {
    color: #065f1a;
    text-decoration: underline;
}

/* ─── Checkbox ─── */
.auth-check .form-check-input:checked {
    background-color: #043d10;
    border-color: #043d10;
}

/* ─── Submit Button ─── */
.auth-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #043d10;
    border: none;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    margin-top: 1.75rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.auth-submit-btn:hover {
    background: #065318;
    color: #ffffff;
}

.auth-submit-btn:active {
    transform: scale(0.985);
}

/* ─── Footer ─── */
.auth-footer {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6875rem;
    color: #9ca89e;
    letter-spacing: 0.02em;
}

/* ─── Error state overrides ─── */
.auth-error-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 0.6875rem 0.875rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
}

.auth-status-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 0.6875rem 0.875rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
}

/* ─── Responsive ─── */
@media (min-width: 768px) {
    .auth-brand-panel {
        display: block;
    }

    .auth-mobile-logo {
        display: none;
    }

    .auth-form-panel {
        padding: 3rem 4rem;
    }
}

@media (min-width: 1200px) {
    .auth-brand-panel {
        width: 48%;
    }

    .auth-form-panel__inner {
        max-width: 400px;
    }
}
