body{
 background: #f8f9fa !important;
}
.nav-link {
color: #072953 !important;
}
/* PAGE CENTERING */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}
.btn-gradient {
    color: white;
    border: none;
    background: linear-gradient( 120deg, #062953 0%, #0a3b4f 30%, #00943E 100% );
}

/* AUTH CARD */
.auth-shell {
    background: #fff;
    width: 100%;
    max-width: 460px;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* LOGO */
.auth-logo {
    height: 42px;
    margin-bottom: 1.2rem;
}

/* TITLE */
.auth-title {
    font-weight: 600;
    margin-bottom: 1.8rem;
}

/* BIG INPUTS */
.form-lg {
    height: 58px;
    font-size: 1rem;
}

/* DIVIDER */
.divider {
    margin: 1.5rem 0;
    color: #999;
    font-size: 0.9rem;
}

/* LINKS */
.auth-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}
.auth-links.single {
    justify-content: center;
}
.auth-links a {
    cursor: pointer;
    color: #062953;
    text-decoration: none;
}
.auth-links a.disabled {
    pointer-events: none;
    opacity: 0.5;
}
.resend-timer {
    font-size: 0.85rem;
    color: #6c757d;
}
.resend-link.loading {
    pointer-events: none;
    opacity: 0.65;
}

.resend-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 6px;
    border: 2px solid rgba(13, 110, 253, 0.2);
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: resendSpin 0.8s linear infinite;
    vertical-align: -2px;
}

@keyframes resendSpin {
    to { transform: rotate(360deg); }
}
.resend-timer.pulse {
    animation: resendPulse 1s ease-in-out infinite;
}
@keyframes resendPulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* TERMS */
.auth-terms {
    font-size: 0.75rem;
    color: #777;
    margin-top: 2rem;
}
.auth-terms a {
    color: #555;
}

/* VIEW TRANSITIONS */
.auth-view {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    position: absolute;
    width: 100%;
    left: 0;
    transition: all 0.35s ease;
}
.auth-view.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

/* BACKGROUND CV ANIMATION */
.cv-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}
.cv-bg span {
    position: absolute;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(0,0,0,0.03);
    animation: float 18s linear infinite;
}
.cv-bg span:nth-child(1)  { top: 10%; left: 5%; }
.cv-bg span:nth-child(2)  { top: 40%; left: 80%; }
.cv-bg span:nth-child(3)  { top: 70%; left: 15%; }
.cv-bg span:nth-child(4)  { top: 20%; left: 60%; }
.cv-bg span:nth-child(5)  { top: 85%; left: 50%; }

.cv-bg span:nth-child(6)  { top: 5%;  left: 45%; }
.cv-bg span:nth-child(7)  { top: 55%; left: 5%; }
.cv-bg span:nth-child(8)  { top: 35%; left: 30%; }
.cv-bg span:nth-child(9)  { top: 65%; left: 70%; }
.cv-bg span:nth-child(10) { top: 15%; left: 85%; }

.cv-bg span:nth-child(11) { top: 90%; left: 20%; }
.cv-bg span:nth-child(12) { top: 25%; left: 10%; }
.cv-bg span:nth-child(13) { top: 50%; left: 55%; }
.cv-bg span:nth-child(14) { top: 75%; left: 85%; }
cv-bg span:nth-child(15) { top: 45%; left: 90%; }

.cv-bg span:nth-child(16) { top: 60%; left: 40%; }
.cv-bg span:nth-child(17) { top: 30%; left: 65%; }
.cv-bg span:nth-child(18) { top: 80%; left: 60%; }


@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-40px); }
    100% { transform: translateY(0); }
}

/* OTP wrapper */
.otp-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* OTP input */
.code-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid #ced4da;
    outline: none;
    transition: all 0.2s ease;
}

.code-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.15rem rgba(13,110,253,.25);
}

/* Mobile friendliness */
@media (max-width: 400px) {
    .code-input {
        width: 42px;
        height: 52px;
    }
}
.google-btn-wrapper iframe {
    width: 100% !important;
}

.google-btn-wrapper > div {
    width: 100% !important;
}

.google-btn-wrapper {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px;
    background-color: #fff;
}

.google-btn-wrapper:hover {
    background-color: #f8f9fa;
}
/* Remove Google button border */
#googleBtn iframe {
    border: none !important;
}

/* Remove wrapper border if any */
/* ---------- BUTTON SPINNER ---------- */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.85;
}

.btn-loading .btn-text {
    visibility: hidden;
}

.btn-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.2rem;
    height: 1.2rem;
    margin: -0.6rem;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- GOOGLE FULLSCREEN LOADER ---------- */
#globalLoader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,0.65);
}

#globalLoader .spinner-border {
    width: 3rem;
    height: 3rem;
}
