.auth-shell {
    background: #ffffff;
    color: #111827;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.auth-brand-panel {
    background: linear-gradient(160deg, #064e3b 0%, #022c22 55%, #011916 100%);
    isolation: isolate;
}

.auth-brand-image {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35));
    opacity: 0.28;
}

.auth-brand-overlay {
    background: linear-gradient(160deg, rgba(6, 78, 59, 0.55) 0%, rgba(2, 44, 34, 0.75) 60%, rgba(1, 25, 22, 0.92) 100%);
}

.auth-display {
    font-family: 'Instrument Serif', Georgia, serif;
}

.auth-heading,
.auth-wordmark,
.auth-primary-button {
    font-family: 'Poppins', 'Inter', sans-serif;
}

.auth-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.875rem;
    background: #ffffff;
    color: #111827;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input.has-password-toggle {
    padding-right: 3rem;
}

.auth-input:hover {
    border-color: #a7f3d0;
}

.auth-input:focus {
    border-color: #047857;
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.12);
    outline: none;
}

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-primary-button {
    background: #0f2e26;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, opacity 0.2s ease;
}

.auth-primary-button:hover:not(:disabled) {
    box-shadow: 0 12px 28px rgba(15, 46, 38, 0.28);
    transform: scale(1.02);
}

.auth-primary-button:active:not(:disabled) {
    transform: scale(0.98);
}

.auth-secondary-button {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.auth-secondary-button:hover:not(:disabled) {
    background: #f0fdf7;
    border-color: #a7f3d0;
    transform: scale(1.01);
}

.auth-primary-button:disabled,
.auth-secondary-button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.auth-page-link {
    color: #047857;
}

.auth-page-link:hover {
    color: #065f46;
    text-decoration: underline;
}

.auth-shell a:focus,
.auth-shell a:focus-visible,
.auth-shell button:focus,
.auth-shell button:focus-visible,
.auth-password-toggle:focus,
.auth-password-toggle:focus-visible {
    border-radius: 0.5rem;
    outline: 2px solid #047857;
    outline-offset: 2px;
}

.auth-brand-panel a:focus,
.auth-brand-panel a:focus-visible {
    outline-color: #fee863;
}

.auth-status {
    border: 1px solid transparent;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.25rem;
    margin-top: 1rem;
    padding: 0.75rem 0.875rem;
    text-align: center;
}

.auth-status[data-state='info'] {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.auth-status[data-state='success'] {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.auth-status[data-state='error'] {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.auth-flash-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.auth-flash-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.auth-flash-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.auth-flash-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

@media (max-width: 1023px) {
    .auth-brand-panel {
        min-height: 30rem;
    }

    .auth-form-panel {
        min-height: 38rem;
    }
}

@media (max-width: 639px) {
    .auth-brand-panel {
        min-height: auto;
    }

    .auth-brand-story {
        padding-bottom: 2.5rem;
        padding-top: 3.5rem;
    }

    .auth-form-panel {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-primary-button,
    .auth-secondary-button,
    .auth-input {
        scroll-behavior: auto;
        transition-duration: 0.01ms;
    }

    .auth-primary-button:hover:not(:disabled),
    .auth-primary-button:active:not(:disabled),
    .auth-secondary-button:hover:not(:disabled) {
        transform: none;
    }
}
