﻿/* background: linear-gradient(135deg, #1e3a8a, #3b82f6); */
/* background: linear-gradient(135deg, #0f172a, #1e40af); */
/* background: linear-gradient(135deg, #0f172a, #3b82f6); */
/* background: linear-gradient(135deg, #f9fafb, #e5e7eb); */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
}

body {
    min-height: 100vh;
    /* background: linear-gradient(135deg, #eff6ff, #ffffff); */
    background: linear-gradient(135deg, #0f172a, #1e40af);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: fadeIn 0.6s ease;
}

.logo {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}


    .logo::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 30%;
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, transparent, #3b82f6, #60a5fa, #3b82f6, transparent );
        border-radius: 2px;
        animation: sparkle 2s ease-in-out infinite;
    }

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        filter: brightness(1);
    }

    50% {
        opacity: 1;
        filter: brightness(1.5);
    }
}

    .logo .icon {
        background: #3b82f6;
        color: white;
        padding: 16px;
        font-size: 28px;
        border-radius: 50%;
    }

    .logo h2 {
        margin-top: 10px;
        font-weight: 600;
        color: #1e293b;
    }

.form-group {
    margin-bottom: 18px;
}

.label {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 14px;
}

.input-box {
    position: relative;
}

    .input-box i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 15px;
    }

.input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    transition: 0.2s;
}

    .input:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
        outline: none;
    }

.options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember label {
    color: #475569;
    cursor: pointer;
}

.remember input {
    accent-color: #3b82f6;
    margin-right: 6px;
}

.forgot {
    color: #3b82f6;
    text-decoration: none;
}

    .forgot:hover {
        text-decoration: underline;
    }

.btn-login {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

    .btn-login:hover {
        background: #2563eb;
    }

.divider {
    text-align: center;
    margin: 28px 0;
    color: #94a3b8;
    font-size: 14px;
    position: relative;
}

    .divider::before, .divider::after {
        content: "";
        height: 1px;
        background: #e2e8f0;
        width: 40%;
        top: 50%;
        position: absolute;
    }

    .divider::before {
        left: 0;
    }

    .divider::after {
        right: 0;
    }

.social {
    display: flex;
    gap: 12px;
}

.social-btn {
    padding: 12px;
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}

    .social-btn:hover {
        background: #f8fafc;
    }

.signup {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

    .signup a {
        color: #3b82f6;
        text-decoration: none;
        font-weight: 500;
    }

        .signup a:hover {
            text-decoration: underline;
        }



#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3b82f6;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}





.signup {
    margin-top: 28px;
    text-align: center;
    font-size: 15px;
    color: #6b7280;
    padding: 20px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Container for the signup prompt to keep items inline */
.signup-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.signup a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .signup a:hover {
        background: linear-gradient(135deg, #059669, #047857);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
        text-decoration: none;
    }

/* Video link inside signup container */
.video-link {
    font-size: 13px;
}

    .video-link a {
        color: #3b82f6;
        text-decoration: none;
        font-weight: 500;
        background: none;
        padding: 0;
        margin: 0;
        border-radius: 0;
        display: inline;
        white-space: nowrap;
    }

        .video-link a:hover {
            color: #2563eb;
            text-decoration: underline;
            transform: none;
            box-shadow: none;
            background: none;
        }

/* Hide the original external video link */
.text-center.mt-3 {
    display: none;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .signup {
        padding: 16px;
        gap: 10px;
    }

    .signup-prompt {
        flex-direction: row;
        gap: 6px;
    }

    .signup a {
        padding: 8px 16px;
        font-size: 14px;
    }

    .video-link {
        font-size: 12px;
    }
}






/* Container */
.fpw-content {
    border-radius: 1rem;
    border: 0;
    box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

/* Header */
.fpw-header {
    border-bottom: none !important;
}

.fpw-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #5d3df5, #119dff);
    margin-right: 12px;
    font-size: 18px;
}

.fpw-title {
    font-weight: 700;
}

/* Form styling */
.fpw-input:focus {
    border-color: #118bff;
    box-shadow: 0 0 0 0.15rem rgba(16, 123, 255, 0.25);
}

.fpw-btn {
    background: linear-gradient(90deg, #119dff, #7a42f5);
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

    .fpw-btn:disabled {
        opacity: 0.6;
    }

.fpw-text {
    color: #6c757d;
}

#fpw-message .alert {
    padding: 6px 10px;
    font-size: 14px;
    margin-top: 8px;
}









.otp-modal-ui {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.otp-info-text {
    font-size: 14px;
    margin-bottom: 15px;
    color: #444;
}

.otp-input-group label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.otp-input {
    height: 42px;
    border-radius: 8px;
    text-align: center;
    letter-spacing: 8px;
    font-size: 22px;
    font-weight: bold;
}

    .otp-input:focus {
        box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25);
    }

.otp-error {
    color: #d9534f;
    font-size: 13px;
    display: block;
    margin-top: 8px;
}



.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}


























/* =========================
   LUXURY SAAS VARIABLES
========================= */
:root {
    --lux-bg: #0b0f14;
    --lux-bg-soft: #111827;
    --lux-card: rgba(255,255,255,0.92);
    --lux-border: rgba(255,255,255,0.08);
    --lux-primary: #1e3a8a; /* midnight blue */
    --lux-primary-hover: #172554;
    --lux-gold: #d4af37; /* champagne gold */
    --lux-text: #0f172a;
    --lux-muted: #6b7280;
    --lux-radius: 20px;
}

/* =========================
   PAGE BACKGROUND
========================= */
body {
    /*background: radial-gradient(1200px 600px at top right, #1e293b 0%, transparent 60%), radial-gradient(1000px 500px at bottom left, #020617 0%, transparent 60%), var(--lux-bg);*/
    background: linear-gradient(135deg, #0f172a, #1e40af);
}

/* =========================
   LOGIN CARD (GLASS)
========================= */
.login-card {
    background: linear-gradient( 180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9) );
    border-radius: 24px;
    border: 1px solid var(--lux-border);
    box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* =========================
   LOGO
========================= */
.logo img {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}

/* =========================
   INPUTS – CLEAN & QUIET
========================= */
.input {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    height: 48px;
    font-size: 15px;
}

    .input:focus {
        border-color: var(--lux-primary);
        box-shadow: 0 0 0 3px rgba(30,58,138,0.15);
    }

.input-box i {
    color: #9ca3af;
}

/* =========================
   PRIMARY BUTTON (EXECUTIVE)
========================= */
.btn-login {
    height: 50px;
    border-radius: 999px;
    background: linear-gradient( 135deg, var(--lux-primary), var(--lux-primary-hover) );
    letter-spacing: 0.4px;
    font-weight: 600;
    box-shadow: 0 16px 40px rgba(30,58,138,0.45);
}

    .btn-login:hover {
        transform: translateY(-1px);
        box-shadow: 0 22px 55px rgba(30,58,138,0.55);
    }

/* =========================
   GOOGLE BUTTON – LUXURY NEUTRAL
========================= */
.google-btn {
    height: 48px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-weight: 500;
}

    .google-btn:hover {
        background: #f9fafb;
        box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    }

/* =========================
   SUBTLE DIVIDER
========================= */
.or-divider {
    color: var(--lux-muted);
}

/* =========================
   SIGNUP PANEL (SOFT LUX)
========================= */
.signup {
    background: linear-gradient( 180deg, #f8fafc, #eef2f7 );
    border-radius: 18px;
    border: 1px solid #e5e7eb;
}

    /* Gold accent only on action */
    .signup a.btn-outline-primary {
        border-color: var(--lux-gold);
        color: var(--lux-gold);
    }

        .signup a.btn-outline-primary:hover {
            background: var(--lux-gold);
            color: #111;
        }

/* =========================
   MODALS – EXECUTIVE FEEL
========================= */
.modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 40px 100px rgba(0,0,0,0.55);
}

.modal-title {
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* =========================
   OTP INPUTS
========================= */
.otp-input {
    border-radius: 14px;
    background: #f8fafc;
}

/* =========================
   MICRO-DETAILS
========================= */
small,
.text-muted {
    color: var(--lux-muted) !important;
}




/* =========================
   BUTTON ICON FIXES
========================= */
.btn-login i {
    font-size: 16px;
    opacity: 0.9;
}

/* Google icon – NO background */
.google-icon {
    width: 18px;
    height: 18px;
    display: block;
}

/* Prevent any inherited background */
.google-btn img {
    background: transparent !important;
}

/* Alignment polish */
.google-btn span {
    font-weight: 500;
}
