/* === AUTH.CSS ===
   assets/css/auth.css
   НАЗНАЧЕНИЕ: Стили страницы входа / регистрации
   РАЗМЕР: ~60 строк */

.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 8px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}
.auth-tab:hover { color: var(--text-primary); }
.auth-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition);
}
.auth-form input:focus {
    border-color: var(--color-primary);
}
.auth-form input::placeholder {
    color: var(--text-muted);
}

.auth-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition);
    margin-top: 4px;
}
.auth-btn:hover { opacity: 0.9; }
.auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-error {
    background: hsla(0, 84%, 60%, 0.15);
    border: 1px solid var(--color-danger);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    color: var(--color-danger);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

/* -- Language switcher -- */
.auth-lang-switcher {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 16px;
}
.auth-lang-btn {
    background: var(--bg-tertiary, hsl(220, 10%, 12%));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm, 4px);
    color: var(--text-secondary);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.auth-lang-btn:hover { color: var(--text-primary); border-color: var(--text-muted); }
.auth-lang-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* -- Forgot password link -- */
.auth-forgot {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-top: -4px;
    transition: color 0.2s;
}
.auth-forgot:hover { color: var(--color-primary); }

/* -- Helper text below forms -- */
.auth-helper {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.auth-switch-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}
.auth-switch-link:hover { text-decoration: underline; }
