/* =============================================================================
   12. СТИЛІ АВТОРИЗАЦІЇ ТА ПОСВЯТИ (Linear & Vercel Occult Tech Aesthetic)
   ============================================================================= */
.gnozis-auth-viewport {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(85vh - 60px);
    padding: 30px 16px 70px;
    position: relative;
    z-index: 2;
}

/* Auth card — very dark bg, subtle cobalt border */
.gnozis-auth-card {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    max-width: 920px;
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(0, 16, 32, 0.90);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(96, 120, 144, 0.28);
    box-shadow: 0 24px 65px -12px rgba(0, 0, 0, 0.90), 0 0 50px rgba(96, 120, 144, 0.10);
    position: relative;
}

.auth-card-visual {
    padding: 44px 36px;
    background: linear-gradient(145deg, rgba(16, 26, 38, 0.98) 0%, rgba(0, 10, 20, 0.99) 100%);
    border-right: 1px solid var(--border-default);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-back-to-feed {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gnozis-text-muted);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-card);
    transition: var(--gnozis-transition);
    width: fit-content;
    margin-bottom: 24px;
}

.auth-back-to-feed:hover {
    color: var(--accent-cyan);
    border-color: rgba(120, 152, 184, 0.4);
    background: rgba(120, 152, 184, 0.08);
    transform: translateX(-3px);
}

.visual-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: auto 0;
}

.auth-sigil-rotating {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-sigil-rotating .sacred-seal-svg {
    width: 100%;
    height: 100%;
    animation: spinSlowSigil 36s linear infinite;
    filter: drop-shadow(0 0 18px rgba(26, 43, 60, 0.5));
}

@keyframes spinSlowSigil {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.auth-sigil-glow {
    position: absolute;
    inset: 15%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 43, 60, 0.45) 0%, rgba(120, 152, 184, 0.2) 50%, transparent 70%);
    filter: blur(24px);
    pointer-events: none;
}

.auth-brand-title {
    font-family: var(--font-primary);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #E0E8F0;
    margin: 0 0 6px;
    text-shadow: 0 0 25px rgba(26, 43, 60, 0.6);
}

.auth-slogan {
    font-size: 0.88rem;
    color: var(--accent-cyan);
    font-style: italic;
    margin-bottom: 16px;
    opacity: 0.95;
    letter-spacing: 0.02em;
}

.auth-manifesto {
    font-size: 0.84rem;
    color: var(--gnozis-text-secondary);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

.auth-card-forms {
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-tabs-nav {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-card);
    margin-bottom: 26px;
    gap: 4px;
}

.auth-tab-btn {
    flex: 1;
    padding: 11px 16px;
    border: none;
    background: transparent;
    color: var(--gnozis-text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--gnozis-transition);
    text-align: center;
    outline: none;
}

/* Auth tab active — cobalt */
.auth-tab-btn.active {
    background: rgba(96, 120, 144, 0.28);
    color: #E0E8F0;
    border: 1px solid rgba(96, 120, 144, 0.48);
    box-shadow: 0 4px 14px rgba(96, 120, 144, 0.22);
}

.auth-tab-btn:hover:not(.active) {
    color: var(--gnozis-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

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

.gnozis-auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gnozis-auth-form .form-group label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gnozis-text-secondary);
}

.gnozis-auth-form .label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gnozis-auth-form .link-lostpass {
    font-size: 0.78rem;
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--gnozis-transition);
}

.gnozis-auth-form .link-lostpass:hover {
    color: #A0B0C0;
    text-decoration: underline;
}

.gnozis-auth-form .gnozis-input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(16, 24, 32, 0.85);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    color: #E0E8F0;
    font-size: 0.92rem;
    font-family: inherit;
    transition: var(--gnozis-transition);
    outline: none;
    box-sizing: border-box;
}

/* Auth input focus — cobalt */
.gnozis-auth-form .gnozis-input:focus {
    border-color: var(--accent-cobalt);
    box-shadow: 0 0 0 3px rgba(96, 120, 144, 0.22);
    background: rgba(26, 43, 60, 0.95);
}

.gnozis-auth-form .gnozis-input::placeholder {
    color: rgba(148, 163, 184, 0.45);
}

.gnozis-auth-form .form-check-row {
    flex-direction: row;
    align-items: center;
}

.gnozis-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 0.83rem;
    color: var(--gnozis-text-secondary);
    line-height: 1.4;
}

/* Auth checkbox — cobalt */
.gnozis-checkbox-label input[type="checkbox"] {
    accent-color: var(--accent-cobalt);
    width: 17px;
    height: 17px;
    cursor: pointer;
    flex-shrink: 0;
}

.gnozis-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.86rem;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gnozis-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #FCA5A5;
}

.gnozis-alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6EE7B7;
}

@media (max-width: 860px) {
    .gnozis-auth-card {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    .auth-card-visual {
        border-right: none;
        border-bottom: 1px solid var(--border-default);
        padding: 32px 24px;
    }
    .auth-card-forms {
        padding: 32px 24px;
    }
}
