/* ============================================================
   AUTH.CSS — Авторизация (login, register, pending)
   Концепция: Soft Glass Neutral
   ============================================================ */

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0e1014;
    background-image:
        radial-gradient(at 20% 0%, rgba(255,255,255,0.04) 0%, transparent 50%),
        radial-gradient(at 80% 100%, rgba(255,255,255,0.02) 0%, transparent 50%);
    background-attachment: fixed;
    color: #e7e9ec;
    padding: 15px;
    max-width: 450px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 90vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2 { color: #ffffff; text-align: center; font-size: 1.4rem; margin-bottom: 20px; }

.card {
    background: rgba(255,255,255,0.03);
    padding: 22px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

label { display: block; font-size: 0.85rem; color: #8b9096; margin-bottom: 6px; margin-top: 10px; }

input, select, button {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #e7e9ec;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

input:focus, select:focus {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}

button {
    background: #e7e9ec;
    color: #0e1014;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 4px 14px rgba(255,255,255,0.08);
}

button:hover {
    background: #f2f4f6;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.12);
}

button:active { transform: translateY(0); }

.error {
    background: rgba(207,128,128,0.1);
    border-left: 3px solid #cf8080;
    color: #d99696;
    padding: 10px 14px;
    font-size: 0.85rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 15px;
}

.link { text-align: center; margin-top: 20px; font-size: 0.85rem; color: #8b9096; }
.link a { color: #e7e9ec; text-decoration: none; font-weight: 500; }
.link a:hover { text-decoration: underline; }

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at top, rgba(255,255,255,0.03) 0%, transparent 60%);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,0.03);
    padding: 36px 28px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: authFadeIn 0.4s ease;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.auth-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.auth-title { font-size: 1.5rem; font-weight: 700; text-align: center; color: #fff; margin: 0 0 6px; }
.auth-subtitle { text-align: center; color: #8b9096; font-size: 0.9rem; margin: 0 0 26px; }

.input-group { position: relative; margin-bottom: 14px; }
.input-group .input-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 1rem; opacity: 0.5; pointer-events: none;
}

.auth-input {
    width: 100%;
    padding: 14px 14px 14px 42px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: #e7e9ec;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.auth-input::placeholder { color: #5f636a; }

.auth-input:focus {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.04);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    background: #e7e9ec;
    color: #0e1014;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px rgba(255,255,255,0.08);
}

.auth-btn:hover {
    background: #f2f4f6;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(255,255,255,0.15);
}

.auth-btn:active { transform: translateY(0); }

.auth-footer { text-align: center; margin-top: 22px; font-size: 0.9rem; color: #8b9096; }
.auth-footer a { color: #e7e9ec; text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.auth-error {
    background: rgba(207,128,128,0.1);
    border: 1px solid rgba(207,128,128,0.25);
    color: #d99696;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    text-align: center;
}

.pending-icon {
    font-size: 64px;
    animation: pulseIcon 2s ease-in-out infinite;
    margin-bottom: 10px;
    display: inline-block;
}
@keyframes pulseIcon {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(255,255,255,0.15)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 24px rgba(255,255,255,0.3)); }
}
.pending-loader {
    margin: 24px auto 0;
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255,255,255,0.08);
    border-top-color: #e7e9ec;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
