.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 76vh;
    padding: 24px;
}

.auth-container--wide {
    align-items: flex-start;
}

.auth-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.auth-box--wide {
    max-width: 860px;
}

.auth-copy-block {
    display: grid;
    gap: 8px;
}

.auth-copy-block p {
    color: var(--muted);
    line-height: 1.7;
}

.auth-box h2 {
    font-size: 2rem;
    margin-bottom: 4px;
    color: var(--text);
}

.auth-form {
    margin-top: 24px;
    display: grid;
    gap: 18px;
}

.auth-form--wide {
    gap: 20px;
}

.auth-form-grid {
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 700;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #f8fbff;
    color: #0f172a;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group small,
.field-note {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
}

.field-errors {
    color: #b91c1c;
    font-size: 0.85rem;
}

.field-errors ul {
    margin: 0;
    padding-left: 18px;
}

.form-group--checkbox {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 18px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2874f0 0%, #3b82f6 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 4px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(40, 116, 240, 0.24);
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 12px;
    font-weight: 500;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #34d399;
    color: #065f46;
}

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

.auth-link {
    text-align: center;
    margin-top: 18px;
    color: #475569;
}

.auth-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.auth-link a:hover {
    text-decoration: underline;
}

body.theme-dark .auth-box,
body.theme-dark .form-group--checkbox {
    background: var(--surface);
    border-color: var(--border);
}

body.theme-dark .form-group input,
body.theme-dark .form-group textarea,
body.theme-dark .form-group select {
    background: var(--surface-soft);
    border-color: var(--border);
    color: var(--text);
}

body.theme-dark .form-group input:focus,
body.theme-dark .form-group textarea:focus,
body.theme-dark .form-group select:focus {
    background: var(--surface);
}

body.theme-dark .auth-link,
body.theme-dark .field-note,
body.theme-dark .form-group small,
body.theme-dark .auth-copy-block p {
    color: var(--muted);
}

body.theme-dark .alert-success {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(74, 222, 128, 0.32);
    color: #bbf7d0;
}

body.theme-dark .alert-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.3);
    color: #fecaca;
}

@media (max-width: 768px) {
    .auth-container {
        padding: 16px;
    }

    .auth-box {
        padding: 28px 22px;
    }

    .auth-box h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 22px 16px;
        border-radius: 20px;
    }

    .auth-form,
    .auth-form--wide {
        gap: 16px;
    }

    .checkbox-label {
        align-items: flex-start;
    }

    .btn-primary,
    .location-card .btn {
        width: 100%;
    }
}
