/* ------------------------------
   GLOBAL STYLES
------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
    background: #080313;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ------------------------------
   BACKGROUND LAYERS
------------------------------ */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
}

.hex-pattern {
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 45px 45px;
    animation: hexGlow 5s ease-in-out infinite alternate;
}

@keyframes hexGlow {
    0% { filter: drop-shadow(0 0 2px #862aff); }
    100% { filter: drop-shadow(0 0 10px #b779ff); }
}

.neon-flow {
    background: linear-gradient(45deg, 
        rgba(124, 61, 255, 0.15) 0%,
        rgba(182, 121, 255, 0.1) 50%,
        rgba(124, 61, 255, 0.15) 100%);
    opacity: 0.35;
    mix-blend-mode: screen;
    animation: neonMotion 10s linear infinite;
}

@keyframes neonMotion {
    0% { transform: translate(-5%, -5%) rotate(0deg); }
    100% { transform: translate(5%, 5%) rotate(360deg); }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -4;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(183, 121, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(183, 121, 255, 0.8);
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* ------------------------------
   NAVBAR
------------------------------ */
.navbar {
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-wfs {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #ffffff, #b779ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-size: 12px;
    opacity: 0.7;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.85;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7c3dff, #b779ff);
    transition: width 0.3s;
}

.nav-links a:hover {
    opacity: 1;
    color: #b779ff;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ------------------------------
   LOGIN SECTION
------------------------------ */
.login-section {
    min-height: calc(100vh - 100px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: linear-gradient(135deg, rgba(18, 8, 38, 0.95), rgba(12, 5, 25, 0.95));
    border: 1px solid rgba(124, 61, 255, 0.3);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(124, 61, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

.login-card.hidden {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #b779ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Google Button */
.google-btn {
    width: 100%;
    padding: 14px;
    background: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.google-btn svg {
    flex-shrink: 0;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(124, 61, 255, 0.3);
}

.divider span {
    padding: 0 15px;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.form-input {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(124, 61, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(124, 61, 255, 0.6);
    box-shadow: 0 0 15px rgba(124, 61, 255, 0.3);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

.forgot-link {
    color: #b779ff;
    text-decoration: none;
    transition: all 0.3s;
}

.forgot-link:hover {
    color: #d49eff;
}

.submit-btn {
    padding: 14px;
    background: linear-gradient(135deg, #7c3dff, #9d63ff);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 61, 255, 0.5);
}

.switch-text {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.switch-text a {
    color: #b779ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.switch-text a:hover {
    color: #d49eff;
}

/* OTP Inputs */
.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
}

.otp-input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(124, 61, 255, 0.3);
    border-radius: 8px;
    color: white;
    transition: all 0.3s;
    outline: none;
}

.otp-input:focus {
    border-color: #7c3dff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 15px rgba(124, 61, 255, 0.4);
    transform: scale(1.05);
}

.resend-section {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.resend-section a {
    color: #b779ff;
    text-decoration: none;
    font-weight: 600;
}

.resend-section a:hover {
    color: #d49eff;
}

#otpEmail {
    color: #b779ff;
    font-weight: 600;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(124, 61, 255, 0.3);
    border-top-color: #7c3dff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 100px;
    right: 30px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(124, 61, 255, 0.95), rgba(157, 99, 255, 0.95));
    border: 1px solid rgba(124, 61, 255, 0.5);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(124, 61, 255, 0.4);
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.notification-toast.show {
    transform: translateX(0);
}

.notification-toast p {
    margin: 0;
    font-weight: 500;
    color: white;
}

/* Responsive */
@media (max-width: 600px) {
    .navbar {
        padding: 15px 20px;
    }

    .login-card {
        padding: 30px 25px;
    }

    .login-title {
        font-size: 1.6rem;
    }

    .otp-inputs {
        gap: 8px;
    }

    .otp-input {
        width: 45px;
        height: 50px;
        font-size: 20px;
    }

    .notification-toast {
        right: 20px;
        left: 20px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 14px;
    }
}