﻿/* static/css/login.css */
:root {
    --bg-body: #0a0710; --bg-panel: #14101c; --bg-input: #1b1626; --border-color: #2a2238;
    --accent-primary: #8b5cf6; --accent-glow: #a78bfa; --accent-gold: #c4b5fd;
    --text-main: #ece9f2; --text-muted: #8e86a0; --danger: #f43f5e;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-size: 14px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;        /* колонка: контент сверху, футер снизу */
    padding: 0;                    /* padding переносим на .login-wrap */
    background-image: radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.18) 0%, transparent 40%),
                        radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.10) 0%, transparent 40%);
    margin: 0;
}

.login-wrap {
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.5s ease-out;
    flex: 1;                       /* занимает всё свободное место */
    display: flex;
    flex-direction: column;
    justify-content: center;       /* центрируем карточку по вертикали */
    align-items: center;           /* и по горизонтали */
    padding: 20px;
    margin: 0 auto;                /* центрируем сам .login-wrap */
    box-sizing: border-box;
}
.login-wrap { width: 100%; max-width: 420px; animation: fadeIn 0.5s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 28px;
                font-size: 1.8rem; font-weight: 700; text-shadow: 0 0 24px rgba(167, 139, 250, 0.35); }
.login-brand .icon { color: var(--accent-glow); font-size: 2rem; }
.login-card { background-color: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 10px;
                padding: 32px; box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.06), 0 20px 60px rgba(90, 40, 160, 0.25); }
.login-card h2 { font-size: 1.2rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.login-card h2 i { color: var(--accent-primary); }
.login-subtitle { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 24px; }
.form-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.5px; }
.form-control { width: 100%; background-color: var(--bg-input); border: 1px solid var(--border-color);
                color: var(--text-main); padding: 11px 14px; border-radius: 6px; outline: none;
                font-family: inherit; font-size: 0.9rem; margin-bottom: 16px; transition: 0.2s; }
.form-control:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18); }
.input-group { position: relative; }
.input-group .form-control { padding-right: 42px; }
.input-group .toggle-pwd { position: absolute; right: 12px; top: 12px; cursor: pointer;
                            color: var(--text-muted); background: none; border: none; font-size: 0.95rem; }
.input-group .toggle-pwd:hover { color: var(--accent-glow); }
.btn-login { width: 100%; background: linear-gradient(90deg, #6d28d9, #8b5cf6); color: white; padding: 12px;
                font-size: 0.95rem; font-weight: 600; border-radius: 6px; border: none; cursor: pointer;
                display: flex; align-items: center; justify-content: center; gap: 10px;
                box-shadow: 0 0 20px rgba(139, 92, 246, 0.45); transition: 0.3s; margin-top: 8px; }
.btn-login:hover { transform: translateY(-1px); background: linear-gradient(90deg, #7c3aed, #a78bfa);
                    box-shadow: 0 0 28px rgba(167, 139, 250, 0.65); }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.login-error { background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.4);
                color: #ff9fb0; padding: 10px 14px; border-radius: 6px; font-size: 0.85rem;
                margin-bottom: 16px; display: none; align-items: center; gap: 8px; }
.login-error.show { display: flex; }
.login-footer { text-align: center; color: var(--text-muted); font-size: 0.75rem; margin-top: 24px; }
.login-footer .highlight { color: var(--accent-glow); font-weight: 600; }