/* Стили формы входа, восстановления доступа и страницы «Мой доступ» */

:root {
    --auth-accent: #1d4ed8;
    --auth-text: #1e293b;
    --auth-muted: #64748b;
    --auth-border: #e2e8f0;
}

/* ========== ОБЩИЙ КАРКАС ФОРМЫ ========== */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(160deg, #eef2f7, #e2e8f0);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--auth-text);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.auth-card-wide {
    max-width: 560px;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.auth-header h1 {
    margin: 0 0 0.3rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.auth-header p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--auth-muted);
}

/* ========== ПОЛЯ И КНОПКА ========== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-form label {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form select {
    padding: 0.6rem 0.7rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--auth-text);
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth-submit {
    margin-top: 1.2rem;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 0.6rem;
    background: var(--auth-accent);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.auth-submit:hover {
    background: #1e40af;
}

/* ========== СООБЩЕНИЯ ========== */
.auth-error,
.auth-ok {
    margin-bottom: 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    line-height: 1.45;
}

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

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

.field-hint,
.auth-note {
    font-size: 0.73rem;
    color: var(--auth-muted);
    line-height: 1.45;
}

.field-hint {
    margin-top: 0.15rem;
}

.auth-note {
    margin: 0.9rem 0 0;
}

.auth-footer {
    margin-top: 1.4rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--auth-muted);
}

.auth-footer a {
    color: var(--auth-accent);
    text-decoration: none;
}

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

/* ========== НОВЫЙ КОД ВОССТАНОВЛЕНИЯ ========== */
.new-code {
    padding: 1rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 0.7rem;
    text-align: center;
}

.new-code-label {
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    color: var(--auth-muted);
}

.new-code-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #0f172a;
    word-break: break-all;
}

code {
    padding: 0.1rem 0.3rem;
    background: #f1f5f9;
    border-radius: 0.25rem;
    font-size: 0.85em;
}

/* ========== СТРАНИЦА «МОЙ ДОСТУП» ========== */
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.account-card {
    max-width: none;
    box-shadow: none;
}

.account-card h2 {
    margin: 0 0 1rem;
    font-size: 1rem;
}

.account-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1rem;
    margin: 0;
    font-size: 0.85rem;
}

.account-info dt {
    color: var(--auth-muted);
}

.account-info dd {
    margin: 0;
    font-weight: 600;
}

@media (max-width: 820px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
}
