﻿/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

/* ================= ANIMATED BACKGROUND ================= */
.bg-fx {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #0f172a;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
}

.orb1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #d4af37, transparent 70%);
    top: -120px;
    left: -100px;
    animation: float1 14s ease-in-out infinite;
}

.orb2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #f5d76e, transparent 70%);
    bottom: -100px;
    right: 8%;
    animation: float2 18s ease-in-out infinite;
}

.orb3 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #1e293b, transparent 70%);
    top: 40%;
    left: 35%;
    animation: float3 22s ease-in-out infinite;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(212,175,55,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(212,175,55,0.04) 1px, transparent 1px);
    background-size: 42px 42px;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(60px, 40px);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-50px, -30px);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -40px) scale(1.1);
    }
}

/* ================= LAYOUT ================= */
.main-container {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ================= LEFT SIDE (desktop) ================= */
.left-side {
    flex: 1.1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay {
    position: relative;
    z-index: 2;
    padding: 60px;
    color: #f1f5f9;
    max-width: 480px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 60px;
}

.logo-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #0f172a;
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

.logo-text h2 {
    font-size: 20px;
    letter-spacing: 3px;
    color: #f1f5f9;
}

.logo-text span {
    font-size: 11px;
    letter-spacing: 2px;
    color: #d4af37;
    font-weight: 600;
}

.content h1 {
    font-size: 38px;
    line-height: 1.3;
    font-weight: 700;
    color: #f1f5f9;
}

    .content h1 span {
        color: #d4af37;
    }

.line {
    width: 60px;
    height: 4px;
    background: #d4af37;
    margin: 24px 0;
    border-radius: 2px;
}

.content p {
    font-size: 15px;
    line-height: 1.7;
    color: #94a3b8;
    max-width: 380px;
}

.stat-row {
    display: flex;
    gap: 14px;
    margin-top: 36px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.06);
    color: #e2e8f0;
    font-size: 12.5px;
    font-weight: 600;
}

    .stat-box i {
        color: #d4af37;
    }

.footer-note {
    position: absolute;
    bottom: 30px;
    left: 60px;
    font-size: 12px;
    color: #64748b;
}

    .footer-note strong {
        color: #94a3b8;
    }

.fade-up {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s ease forwards;
}

.d1 {
    animation-delay: 0.1s;
}

.d2 {
    animation-delay: 0.25s;
}

.d3 {
    animation-delay: 0.4s;
}

.d4 {
    animation-delay: 0.55s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= RIGHT SIDE ================= */
.right-side {
    flex: 0.9;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

/* desktop pe mobile hero hamesha hidden */
.mobile-hero {
    display: none;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    border: 1px solid #e2e8f0;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    animation: cardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.15s;
}

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.top-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.login-card h2 {
    font-size: 24px;
    color: #0f172a;
    margin-bottom: 6px;
    font-weight: 700;
}

.sub-text {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 30px;
}

/* ================= FORM - floating label style ================= */
.form-group {
    margin-bottom: 22px;
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 14px;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

    .input-box:focus-within {
        border-color: #d4af37;
        box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
        background: #ffffff;
    }

    .input-box.has-value {
        border-color: #cbd5e1;
        background: #ffffff;
    }

    .input-box i:first-child {
        color: #94a3b8;
        font-size: 14px;
        transition: color 0.2s;
    }

    .input-box:focus-within i:first-child {
        color: #d4af37;
    }

    .input-box input {
        flex: 1;
        order: 2;
        border: none;
        outline: none;
        background: transparent;
        padding: 20px 12px 8px;
        font-size: 14px;
        color: #0f172a;
    }

    .input-box label {
        position: absolute;
        left: 38px;
        top: 15px;
        font-size: 14px;
        color: #94a3b8;
        pointer-events: none;
        transition: 0.18s ease;
        order: 3;
    }

    .input-box input:focus + label,
    .input-box input:not(:placeholder-shown) + label {
        top: 6px;
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        color: #b8860b;
    }

    .input-box .eye {
        order: 4;
        cursor: pointer;
        color: #94a3b8;
        font-size: 14px;
        transition: color 0.2s;
    }

        .input-box .eye:hover {
            color: #475569;
        }

.field-error {
    display: block;
    color: #dc2626;
    font-size: 12px;
    margin-top: 5px;
}

.error-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
}

/* ================= OPTIONS ================= */
.option-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 26px;
    font-size: 13px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #475569;
    cursor: pointer;
}

    .remember input {
        accent-color: #d4af37;
        cursor: pointer;
    }

.forgot-link {
    color: #b8860b;
    text-decoration: none;
    font-weight: 600;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

/* ================= BUTTON ================= */
.login-btn {
    position: relative;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #d4af37;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    overflow: hidden;
}

    .login-btn::after {
        content: "";
        position: absolute;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        background: linear-gradient(120deg, transparent, rgba(212,175,55,0.25), transparent);
        transform: skewX(-20deg);
        transition: left 0.6s ease;
    }

    .login-btn:hover::after {
        left: 130%;
    }

    .login-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.3);
    }

    .login-btn:active {
        transform: translateY(0);
    }

.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-top-color: #d4af37;
    border-radius: 50%;
}

.login-btn.loading .btn-text,
.login-btn.loading .btn-icon {
    display: none;
}

.login-btn.loading .btn-spinner {
    display: inline-block;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================= SIGNUP NOTE ================= */
.signup-note {
    text-align: center;
    margin-top: 22px;
    font-size: 13.5px;
    color: #64748b;
}

    .signup-note a {
        color: #b8860b;
        font-weight: 700;
        text-decoration: none;
        margin-left: 4px;
    }

        .signup-note a:hover {
            text-decoration: underline;
        }

.mobile-footer-note {
    display: none;
    margin-top: 24px;
    font-size: 11.5px;
    color: #94a3b8;
    text-align: center;
}

    .mobile-footer-note strong {
        color: #64748b;
    }

/* ================= MOBILE HERO ================= */
.m-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
}

.m-orb1 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, #d4af37, transparent 70%);
    top: -60px;
    right: -40px;
}

.m-orb2 {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, #f5d76e, transparent 70%);
    bottom: -50px;
    left: -30px;
}

.mobile-logo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

    .mobile-logo .logo-box {
        width: 44px;
        height: 44px;
        font-size: 15px;
        box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
    }

    .mobile-logo .logo-text {
        text-align: left;
    }

        .mobile-logo .logo-text h2 {
            font-size: 15px;
            letter-spacing: 2px;
            color: #f1f5f9;
            font-weight: 800;
        }

        .mobile-logo .logo-text span {
            font-size: 9.5px;
            letter-spacing: 1.5px;
            color: #d4af37;
            font-weight: 700;
        }

.mobile-tagline {
    position: relative;
    z-index: 2;
    margin-top: 14px;
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 500;
}

.mobile-badges {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

    .mobile-badges span {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        font-weight: 600;
        color: #e2e8f0;
        background: rgba(212, 175, 55, 0.1);
        border: 1px solid rgba(212, 175, 55, 0.3);
        padding: 6px 12px;
        border-radius: 20px;
    }

    .mobile-badges i {
        color: #d4af37;
    }

/* ================= RESPONSIVE (ek hi jagah, duplicate nahi) ================= */
@media (max-width: 900px) {
    .left-side {
        display: none;
    }

    .main-container {
        display: block;
    }

    .right-side {
        display: block;
        padding: 0 0 40px;
    }

    .mobile-hero {
        display: block;
        position: relative;
        width: 100%;
        background: linear-gradient(135deg, #0f172a 0%, #1a2744 60%, #0f172a 100%);
        padding: 44px 24px 70px;
        text-align: center;
        overflow: hidden;
        border-radius: 0 0 28px 28px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    }

    .login-card {
        margin: -44px auto 0;
        position: relative;
        z-index: 3;
        max-width: 420px;
        width: calc(100% - 32px);
    }

    .mobile-footer-note {
        display: block;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 22px;
        border-radius: 12px;
    }
}
