/* Shared dark-theme styles for all auth pages */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

/* ── Background ── */
.auth-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #3b0764 100%);
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
.auth-bg::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,.18) 0%, transparent 70%);
    top: -150px; right: -100px;
    pointer-events: none;
}
.auth-bg::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(168,85,247,.12) 0%, transparent 70%);
    bottom: -100px; left: 5%;
    pointer-events: none;
}

.auth-grid {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.04) 1px, transparent 0);
    background-size: 40px 40px;
    /* Ne fogja el az egér eseményeket — alatta lévő linkek / gombok kattinthatók maradnak */
    pointer-events: none;
}

/* ── Glass card ── */
.auth-card {
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,.1);
}

/* ── Inputs ── */
.auth-input {
    background: rgba(255,255,255,.07) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    color: #f1f5f9 !important;
    transition: border-color .2s, box-shadow .2s;
}
.auth-input::placeholder {
    color: rgba(148,163,184,.6) !important;
}
.auth-input:focus {
    outline: none !important;
    border-color: rgba(168,85,247,.5) !important;
    box-shadow: 0 0 0 3px rgba(168,85,247,.15) !important;
}
.auth-input:read-only {
    background: rgba(255,255,255,.03) !important;
    color: rgba(148,163,184,.7) !important;
}

/* ── Primary button ── */
.auth-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    color: #fff;
    font-weight: 600;
    transition: transform .15s, box-shadow .15s, opacity .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px -4px rgba(124,58,237,.4);
}
.auth-btn:active {
    transform: translateY(0);
}
.auth-btn.disabled, .auth-btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ── Alert boxes (dark-themed) ── */
.auth-alert-error {
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.25);
    color: #fca5a5;
}
.auth-alert-success {
    background: rgba(16,185,129,.12);
    border: 1px solid rgba(16,185,129,.25);
    color: #6ee7b7;
}
.auth-alert-warning {
    background: rgba(245,158,11,.12);
    border: 1px solid rgba(245,158,11,.25);
    color: #fcd34d;
}
.auth-alert-info {
    background: rgba(168,85,247,.12);
    border: 1px solid rgba(168,85,247,.25);
    color: #c4b5fd;
}

/* ── Info panel (dark) ── */
.auth-info-panel {
    background: rgba(168,85,247,.08);
    border: 1px solid rgba(168,85,247,.2);
    color: #c4b5fd;
}
.auth-info-panel h4,
.auth-info-panel .auth-info-title {
    color: #ddd6fe;
}
.auth-info-panel li,
.auth-info-panel p {
    color: #c4b5fd;
}

/* ── Link colors ── */
.auth-link {
    color: #a78bfa;
    transition: color .2s;
}
.auth-link:hover {
    color: #c4b5fd;
}

/* ── Version footer ── */
.auth-version {
    color: rgba(100,116,139,.6);
    font-size: .75rem;
    text-align: center;
    margin-top: 1.5rem;
}

/* ── Checkbox override ── */
.auth-checkbox {
    accent-color: #7c3aed;
}

/* ── QR code wrapper ── */
.auth-qr {
    background: #fff;
    padding: 1rem;
    border-radius: .75rem;
    display: inline-block;
}

/* ── Secret key display ── */
.auth-code-display {
    background: rgba(255,255,255,.08);
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,.1);
}

/* ── Recovery code grid items ── */
.auth-recovery-code {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    color: #e2e8f0;
}

/* Keskeny képernyő: a viewport meta nélkül az egész oldal „távoli” skálán jelenik meg.
   Itt olvashatóbb mezők / gombok (16px+ szöveg: iOS nem nagyít fókusznál). */
@media (max-width: 639px) {
    .auth-input {
        font-size: 1rem !important;
        line-height: 1.4;
        min-height: 2.75rem;
    }
    .auth-btn {
        font-size: 1rem;
        min-height: 2.75rem;
    }
    .auth-card h2 {
        font-size: 1.375rem;
    }
}
