/* ═══════════════════════════════════════════
   SMS Verification — Dark Tech Theme
   ═══════════════════════════════════════════ */

.guest-page--verify {
    background:
        radial-gradient(ellipse at 20% 15%, rgba(99, 102, 241, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 85%, rgba(6, 182, 212, 0.18) 0%, transparent 45%),
        linear-gradient(160deg, #0f172a 0%, #1e1b4b 42%, #0f172a 100%);
    background-attachment: fixed;
}

.guest-page--verify::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.guest-page--verify .guest-container {
    position: relative;
    z-index: 1;
}

.guest-container--wide { max-width: 480px; }

/* Dark-theme alerts on verify pages */
.guest-page--verify .alert {
    border: none;
    border-radius: 0.75rem;
    backdrop-filter: blur(8px);
}
.guest-page--verify .alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.3);
}
.guest-page--verify .alert-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.3);
}
.guest-page--verify .alert-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.3);
}
.guest-page--verify .btn-close { filter: invert(1) opacity(0.6); }

/* Shell */
.sms-verify-shell { width: 100%; }

.sms-verify-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #e0e7ff;
}
.sms-verify-brand i {
    color: #818cf8;
    font-size: 1.25rem;
}

.sms-verify-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.75rem;
}
.sms-verify-step {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.sms-verify-step--done {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.25);
    background: rgba(16, 185, 129, 0.08);
}
.sms-verify-step--active {
    color: #c7d2fe;
    border-color: rgba(129, 140, 248, 0.4);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}
.sms-verify-step-line {
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, rgba(52, 211, 153, 0.5), rgba(129, 140, 248, 0.5));
    border-radius: 1px;
}

/* Card */
.sms-verify-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 27, 75, 0.92) 50%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(99, 102, 241, 0.1) inset,
        0 0 80px rgba(99, 102, 241, 0.08);
    color: #e2e8f0;
}

.sms-verify-card__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    opacity: 0.8;
}

.sms-verify-card__scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.03) 50%, transparent 100%);
    background-size: 100% 4px;
    animation: sms-scanline 8s linear infinite;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes sms-scanline {
    0% { background-position: 0 -100%; }
    100% { background-position: 0 100%; }
}

.sms-verify-card__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    animation: sms-glow-pulse 6s ease-in-out infinite;
}

.sms-verify-card__glow--1 { width: 220px; height: 220px; background: #6366f1; top: -70px; right: -50px; }
.sms-verify-card__glow--2 { width: 200px; height: 200px; background: #06b6d4; bottom: -60px; left: -40px; animation-delay: -3s; }

@keyframes sms-glow-pulse {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.05); }
}

.sms-verify-card__inner {
    position: relative;
    z-index: 1;
    padding: 2rem 1.75rem 1.75rem;
}

/* Hero phone icon */
.sms-verify-hero-icon {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #a5b4fc;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.15));
    border-radius: 1rem;
    border: 1px solid rgba(129, 140, 248, 0.35);
}

.sms-verify-hero-icon__ring {
    position: absolute;
    inset: -6px;
    border-radius: 1.2rem;
    border: 1px solid rgba(129, 140, 248, 0.25);
    animation: sms-ring-pulse 2.5s ease-out infinite;
}

@keyframes sms-ring-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 0; }
}

/* Timer */
.sms-verify-timer-wrap {
    position: relative;
    width: 110px;
    height: 110px;
}

.sms-verify-timer {
    width: 110px;
    height: 110px;
    transform: rotate(-90deg);
}

.sms-verify-timer__track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 7;
}

.sms-verify-timer__progress {
    fill: none;
    stroke: url(#smsTimerGradient);
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.4));
}

.sms-verify-timer__label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.sms-verify-timer__value {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(90deg, #a5b4fc, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
}

.sms-verify-timer__label small {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin-top: 0.15rem;
}

/* Text */
.sms-verify-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(129, 140, 248, 0.35);
}

.sms-verify-title {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(90deg, #f8fafc, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.4rem;
}

.sms-verify-subtitle {
    font-size: 0.86rem;
    color: #94a3b8;
    line-height: 1.55;
}

.sms-verify-subtitle strong { color: #e0e7ff; font-weight: 600; }

.sms-verify-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 0.55rem;
    text-align: center;
}

/* OTP inputs */
.sms-otp-inputs {
    display: flex;
    gap: 0.45rem;
    justify-content: center;
}

.sms-otp-digit {
    width: 44px;
    height: 54px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(129, 140, 248, 0.3);
    border-radius: 0.7rem;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    caret-color: #818cf8;
}

.sms-otp-digit:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 0 20px rgba(99, 102, 241, 0.15);
    background: rgba(15, 23, 42, 0.9);
    transform: translateY(-2px);
}

.sms-otp-digit.filled {
    border-color: rgba(52, 211, 153, 0.5);
    background: rgba(16, 185, 129, 0.08);
}

.sms-otp-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
}

.sms-otp-hint.error { color: #fca5a5; }
.sms-otp-hint.success { color: #6ee7b7; }

/* Form fields (password reset) */
.sms-verify-form .form-control {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(129, 140, 248, 0.28);
    color: #f1f5f9;
    border-radius: 0.65rem;
}

.sms-verify-form .form-control:focus {
    background: rgba(15, 23, 42, 0.85);
    border-color: #818cf8;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.sms-verify-form .form-label {
    color: #94a3b8;
    font-size: 0.82rem;
}

/* Buttons */
.btn-sms-verify {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #0891b2 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 0.7rem;
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.btn-sms-verify:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(99, 102, 241, 0.5);
    color: #fff;
}

.btn-sms-verify:disabled { opacity: 0.7; cursor: wait; }

.btn-sms-resend {
    color: #a5b4fc;
    border: 1px solid rgba(129, 140, 248, 0.28);
    background: rgba(99, 102, 241, 0.08);
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    transition: background 0.15s, border-color 0.15s;
}

.btn-sms-resend:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-sms-resend:not(:disabled):hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(129, 140, 248, 0.45);
    color: #c7d2fe;
}

.sms-verify-secure-note {
    margin-top: 1.25rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.72rem;
    color: #64748b;
    text-align: center;
    line-height: 1.45;
}

.sms-verify-secure-note i { color: #818cf8; margin-right: 0.25rem; }

.sms-verify-back {
    color: #64748b;
    font-size: 0.84rem;
    text-decoration: none;
    transition: color 0.15s;
}

.sms-verify-back:hover { color: #94a3b8; }

/* Expired state */
.sms-verify-card--expired .sms-verify-timer__progress {
    stroke: #f87171;
    filter: drop-shadow(0 0 6px rgba(248, 113, 113, 0.4));
}

.sms-verify-card--expired .sms-verify-timer__value {
    background: none;
    -webkit-text-fill-color: #fca5a5;
    color: #fca5a5;
}

@media (max-width: 400px) {
    .sms-otp-digit { width: 38px; height: 50px; font-size: 1.15rem; }
    .sms-otp-inputs { gap: 0.3rem; }
    .sms-verify-card__inner { padding: 1.5rem 1.1rem 1.25rem; }
    .sms-verify-step { font-size: 0.68rem; padding: 0.25rem 0.5rem; }
}
