/* Post-login secure entry preloader */

.portal-secure-entry {
    min-height: 100vh;
    overflow: hidden;
    color: #e8eaed;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(212, 175, 55, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(30, 64, 175, 0.1) 0%, transparent 50%),
        linear-gradient(165deg, #060a10 0%, #0a0e14 50%, #0d1219 100%);
}

.portal-secure-entry h1,
.portal-secure-entry h2,
.portal-secure-entry p,
.portal-secure-entry li,
.portal-secure-entry span,
.portal-secure-entry footer {
    color: inherit;
}

.secure-entry {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    text-align: center;
    color: #e8eaed;
}

.secure-entry-brand {
    margin-bottom: 36px;
}

.secure-entry-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 18, 28, 0.8);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.12);
}

.secure-entry-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.secure-entry-eyebrow {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #d4af37;
    margin-bottom: 8px;
}

.secure-entry-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px;
}

.secure-entry-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

.secure-entry-ring {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 28px;
}

.secure-entry-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(212, 175, 55, 0.15);
}

.secure-entry-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--gold);
    border-right-color: rgba(212, 175, 55, 0.5);
    animation: secureRingSpin 1s linear infinite;
}

.secure-entry-ring i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    color: #d4af37;
    animation: securePulse 1.6s ease-in-out infinite;
}

@keyframes secureRingSpin {
    to { transform: rotate(360deg); }
}

@keyframes securePulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.95); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.secure-entry-status {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #f3f4f6;
    margin: 0 0 24px;
    min-height: 1.4em;
    transition: opacity 0.25s ease;
}

.secure-entry-status.is-fading {
    opacity: 0.4;
}

.secure-entry-steps {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    width: min(360px, 100%);
    text-align: left;
}

.secure-entry-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #6b7280;
    padding: 8px 0;
    opacity: 0.5;
    transition: opacity 0.35s ease, color 0.35s ease;
}

.secure-entry-steps li span:not(.step-icon) {
    color: inherit;
}

.secure-entry-steps li.is-active {
    opacity: 1;
    color: #e5e7eb;
}

.secure-entry-steps li.is-done {
    opacity: 1;
    color: #d1d5db;
}

.secure-entry-steps li .step-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.secure-entry-steps li.is-active .step-icon {
    border-color: rgba(212, 175, 55, 0.5);
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.secure-entry-steps li.is-done .step-icon {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.45);
    color: #10b981;
}

.secure-entry-progress {
    width: min(320px, 100%);
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.secure-entry-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #b8860b, var(--gold), #f5d77a);
    border-radius: 4px;
    transition: width 0.45s cubic-bezier(0.21, 0.72, 0.28, 1);
}

.secure-entry-footer {
    margin-top: 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 8px;
}

.secure-entry-footer i {
    color: #d4af37;
    font-size: 11px;
}

/* Login page overlay (same session before redirect) */
.secure-entry-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 10, 16, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.secure-entry-overlay.is-visible {
    display: flex;
}

.secure-entry-overlay .secure-entry-ring {
    margin-bottom: 20px;
}

.secure-entry-overlay .secure-entry-status {
    margin-bottom: 0;
    color: #f3f4f6;
    font-size: 15px;
}

.secure-entry-overlay .qual-submit-ring i {
    font-size: 26px;
}

@media (max-width: 768px) {
    .secure-entry-overlay .secure-entry-steps {
        width: 100%;
        max-width: 320px;
    }
}
