/* Sectrox Auth Pages - Premium Styles */

/* Background */
.auth-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #000000; }
#cyberNetwork { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.auth-glow { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.auth-glow-1 { width: 400px; height: 400px; background: rgba(229,9,20,0.08); top: -10%; right: -5%; animation: glowPulse 8s ease-in-out infinite; }
.auth-glow-2 { width: 300px; height: 300px; background: rgba(59,130,246,0.05); bottom: -10%; left: -5%; animation: glowPulse 10s ease-in-out infinite reverse; }
@keyframes glowPulse { 0%,100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }

/* Container */
.auth-container {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 100vh; padding: 2rem;
}

/* Card */
.auth-card {
    width: 100%; max-width: 420px;
    background: var(--glass-bg); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border); border-radius: 20px;
    padding: 2.5rem; box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    animation: cardSlideIn 0.6s cubic-bezier(0.16,1,0.3,1);
}
@keyframes cardSlideIn { 0% { opacity: 0; transform: translateY(30px) scale(0.96); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

/* Header */
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.auth-logo span { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text-primary); }
.auth-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--text-primary); letter-spacing: -0.02em; }
.auth-subtitle { color: var(--text-secondary); margin: 0; font-size: 0.9375rem; }

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.input-wrapper { position: relative; }
.input-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); transition: color 0.2s; pointer-events: none; }
.form-input {
    width: 100%; padding: 0.875rem 1rem 0.875rem 2.75rem;
    background: var(--bg-surface-elevated); border: 1px solid var(--border-color);
    border-radius: 12px; color: var(--text-primary); font-size: 0.9375rem;
    font-family: var(--font-sans); transition: all 0.2s;
}
.form-input:focus { outline: none; border-color: var(--sectrox-red); box-shadow: 0 0 0 3px rgba(229,9,20,0.15); background: var(--bg-surface); }
.form-input:focus ~ .input-icon, .form-input:focus + .input-icon { color: var(--sectrox-red); }
.form-input::placeholder { color: var(--text-muted); }

/* Password toggle */
.password-toggle { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 0; transition: color 0.2s; }
.password-toggle:hover { color: var(--text-primary); }

/* Password strength */
.password-strength { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.25rem; }
.strength-bar { flex: 1; height: 3px; background: var(--bg-surface-elevated); border-radius: 3px; overflow: hidden; }
.strength-fill { height: 100%; width: 0; border-radius: 3px; transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }
.strength-text { font-size: 0.75rem; font-weight: 500; white-space: nowrap; }

/* ===== CUSTOM LOGO ANIMATION (AUTH) ===== */
.logo-3d-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
}
.logo-3d {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.4), inset 0 0 15px rgba(229, 9, 20, 0.8);
    animation: premiumFloat 6s ease-in-out infinite, pulseGlow 4s ease-in-out infinite;
    transform-style: preserve-3d;
    border: 2px solid rgba(229, 9, 20, 0.8);
    background: #000;
}

@keyframes premiumFloat {
    0%, 100% { transform: translateY(0) rotateX(5deg) rotateY(-5deg); }
    50% { transform: translateY(-8px) rotateX(-5deg) rotateY(5deg); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(229, 9, 20, 0.4), inset 0 0 15px rgba(229, 9, 20, 0.8); }
    50% { box-shadow: 0 0 40px rgba(229, 9, 20, 0.8), inset 0 0 25px rgba(229, 9, 20, 1); border-color: #ff3b30; }
}

/* Checkbox */
.form-row { display: flex; justify-content: space-between; align-items: center; }
.checkbox-wrapper { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; color: var(--text-secondary); }
.checkbox-wrapper input { display: none; }
.checkbox-custom { width: 18px; height: 18px; border: 1.5px solid var(--border-color); border-radius: 4px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; background: var(--bg-surface-elevated); }
.checkbox-wrapper input:checked + .checkbox-custom { background: var(--sectrox-red); border-color: var(--sectrox-red); }
.checkbox-wrapper input:checked + .checkbox-custom::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 700; }

.form-link { color: var(--sectrox-red); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: opacity 0.2s; }
.form-link:hover { opacity: 0.8; }

/* Auth button */
.btn-auth {
    width: 100%; padding: 0.9375rem;
    background: var(--sectrox-red); color: #fff; border: none;
    border-radius: 12px; font-size: 0.9375rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-family: var(--font-sans);
    box-shadow: 0 4px 15px rgba(229,9,20,0.3);
}
.btn-auth:hover { background: var(--sectrox-red-hover); transform: translateY(-1px); box-shadow: 0 8px 25px rgba(229,9,20,0.4); }
.btn-auth:active { transform: translateY(0); }
.btn-auth:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.spinner { width: 20px; height: 20px; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Error/Success messages */
.form-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #ef4444; padding: 0.75rem 1rem; border-radius: 10px; font-size: 0.875rem; text-align: center; }
.form-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); color: #10b981; padding: 0.75rem 1rem; border-radius: 10px; font-size: 0.875rem; text-align: center; }

/* OTP Inputs */
.otp-header { text-align: center; margin-bottom: 1.5rem; }
.otp-inputs { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.otp-digit {
    width: 48px; height: 56px; text-align: center; font-size: 1.5rem; font-weight: 700;
    font-family: var(--font-mono); background: var(--bg-surface-elevated);
    border: 1.5px solid var(--border-color); border-radius: 12px;
    color: var(--text-primary); transition: all 0.2s;
}
.otp-digit:focus { outline: none; border-color: var(--sectrox-red); box-shadow: 0 0 0 3px rgba(229,9,20,0.15); }

/* Footer */
.auth-footer { text-align: center; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.auth-footer p { color: var(--text-secondary); font-size: 0.875rem; margin: 0; }

/* Trust indicators */
.auth-trust { display: flex; gap: 2rem; margin-top: 2rem; opacity: 0.6; }
.trust-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

/* Responsive */
@media (max-width: 768px) {
    .auth-container { padding: 1rem; }
    .auth-card { padding: 2rem; max-width: 100%; width: 100%; border-radius: 20px; }
    .auth-trust { gap: 1rem; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .auth-container { padding: 0.75rem; }
    .auth-card { padding: 1.5rem; border-radius: 16px; margin: 0; box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
    .auth-trust { flex-direction: column; align-items: center; gap: 0.5rem; }
    .otp-inputs { gap: 0.35rem; }
    .otp-digit { width: 38px; height: 46px; font-size: 1.25rem; }
    .auth-title { font-size: 1.25rem; }
    .auth-subtitle { font-size: 0.85rem; }
    .auth-logo span { font-size: 1.25rem; }
    .logo-3d-container { width: 80px !important; height: 80px !important; }
}

@media (max-width: 360px) {
    .auth-card { padding: 1.25rem; }
    .otp-inputs { gap: 0.25rem; }
    .otp-digit { width: 34px; height: 42px; font-size: 1.1rem; }
    .auth-title { font-size: 1.15rem; }
    .auth-logo span { font-size: 1.15rem; }
    .logo-3d-container { width: 70px !important; height: 70px !important; }
}
