:root {
    --auth-primary: #1e3a8a;
    --auth-primary-strong: #1e40af;
    --auth-accent: #570e17;
    --auth-surface: #ffffff;
    --auth-surface-soft: rgba(255, 255, 255, 0.14);
    --auth-bg: linear-gradient(135deg, #0f245d 0%, #1e3a8a 45%, #570e17 100%);
    --auth-border: #dbe3f0;
    --auth-muted: #64748b;
    --auth-text: #1e293b;
    --auth-shadow: 0 24px 50px rgba(15, 23, 42, 0.24);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: var(--auth-bg);
    color: var(--auth-text);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-shell {
    width: 100%;
    max-width: 1080px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: 1.5rem;
    align-items: stretch;
}

.auth-panel {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    padding: 2.4rem;
    color: white;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
}

.auth-panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-panel-title {
    margin: 1rem 0 0.85rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
}

.auth-panel-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1rem;
    max-width: 36rem;
}

.auth-panel-list {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.auth-panel-list li {
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.92);
}

.auth-card {
    width: 100%;
    background: var(--auth-surface);
    border-radius: 28px;
    padding: 2.25rem;
    box-shadow: var(--auth-shadow);
}

.auth-card.compact {
    max-width: 470px;
    margin: 0 auto;
}

.auth-header {
    text-align: left;
    margin-bottom: 1.75rem;
}

.auth-title {
    margin: 0 0 0.45rem;
    color: var(--auth-primary);
    font-size: 2rem;
    line-height: 1.15;
}

.auth-subtitle {
    margin: 0;
    color: var(--auth-muted);
}

.auth-banner {
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border-left: 4px solid var(--auth-primary-strong);
    background: #e8f0ff;
    color: var(--auth-primary-strong);
}

.auth-alert {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    font-weight: 600;
}

.auth-alert.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.auth-alert.success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #059669;
}

.auth-form-group {
    margin-bottom: 1.2rem;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.2rem;
}

.auth-form-grid .full-width {
    grid-column: 1 / -1;
}

.auth-form-group label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--auth-text);
    font-weight: 700;
}

.auth-required {
    color: #dc2626;
}

.auth-form-group input,
.auth-form-group select,
.auth-form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--auth-border);
    font: inherit;
    color: var(--auth-text);
    background: #fff;
}

.auth-form-group input:focus,
.auth-form-group select:focus,
.auth-form-group textarea:focus {
    outline: none;
    border-color: var(--auth-primary-strong);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.12);
}

.auth-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.auth-button,
.auth-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.95rem 1.15rem;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
}

.auth-button {
    background: linear-gradient(135deg, var(--auth-primary-strong) 0%, var(--auth-primary) 100%);
    color: white;
}

.auth-button:hover {
    box-shadow: 0 12px 22px rgba(30, 64, 175, 0.22);
}

.auth-button-secondary {
    background: #eef2f7;
    color: #334155;
}

.auth-footer {
    margin-top: 1.4rem;
    text-align: center;
    color: var(--auth-muted);
}

.auth-footer a {
    color: var(--auth-primary-strong);
    font-weight: 700;
    text-decoration: none;
}

.auth-meta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.auth-link-stack {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        display: none;
    }
}

@media (max-width: 640px) {
    .auth-card {
        padding: 1.5rem;
        border-radius: 22px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
    }
}
