    :root {
        --primary: #128C7E;
        --primary-dark: #075E54;
        --primary-light: #25D366;
        --accent: #34B7F1;
        --bg-dark: #0a1628;
        --bg-card: rgba(255, 255, 255, 0.08);
        --text-light: #ffffff;
        --text-muted: rgba(255, 255, 255, 0.6);
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Vazirmatn', sans-serif;
        min-height: 100vh;
        background: var(--bg-dark);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
    }

    /* Animated Space Background */
    .space-bg {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: 
            radial-gradient(ellipse at 20% 80%, rgba(18, 140, 126, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 20%, rgba(52, 183, 241, 0.1) 0%, transparent 50%),
            radial-gradient(ellipse at 50% 50%, rgba(7, 94, 84, 0.2) 0%, transparent 70%),
            linear-gradient(180deg, #0a1628 0%, #0f2744 50%, #0a1628 100%);
        z-index: -3;
    }

    /* Stars */
    .stars {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -2;
    }

    .star {
        position: absolute;
        background: white;
        border-radius: 50%;
        animation: twinkle var(--duration) ease-in-out infinite;
    }

    @keyframes twinkle {
        0%, 100% { opacity: var(--min-opacity); transform: scale(1); }
        50% { opacity: 1; transform: scale(1.2); }
    }

    /* Floating Space Objects */
    .space-objects {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        overflow: hidden;
    }

    .planet {
        position: absolute;
        border-radius: 50%;
        animation: float 20s ease-in-out infinite;
    }

    .planet-1 {
        width: 120px;
        height: 120px;
        top: 10%;
        left: 5%;
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        box-shadow: 
            inset -20px -20px 40px rgba(0,0,0,0.3),
            0 0 60px rgba(240, 147, 251, 0.3);
        animation-delay: 0s;
    }

    .planet-2 {
        width: 80px;
        height: 80px;
        top: 60%;
        right: 8%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        box-shadow: 
            inset -15px -15px 30px rgba(0,0,0,0.3),
            0 0 40px rgba(102, 126, 234, 0.3);
        animation-delay: -5s;
    }

    .planet-3 {
        width: 60px;
        height: 60px;
        bottom: 15%;
        left: 10%;
        background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
        box-shadow: 
            inset -10px -10px 20px rgba(0,0,0,0.3),
            0 0 30px rgba(37, 211, 102, 0.3);
        animation-delay: -10s;
    }

    /* Saturn-like planet with ring */
    .saturn {
        width: 100px;
        height: 100px;
        top: 20%;
        right: 15%;
        background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
        box-shadow: 
            inset -20px -20px 40px rgba(0,0,0,0.2),
            0 0 50px rgba(252, 182, 159, 0.3);
        animation-delay: -7s;
    }

    .saturn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotateX(75deg);
        width: 160px;
        height: 160px;
        border: 8px solid rgba(255, 236, 210, 0.4);
        border-radius: 50%;
        box-shadow: 0 0 20px rgba(252, 182, 159, 0.2);
    }

    @keyframes float {
        0%, 100% { transform: translateY(0) rotate(0deg); }
        50% { transform: translateY(-30px) rotate(5deg); }
    }

    /* Shooting Stars */
    .shooting-star {
        position: absolute;
        width: 4px;
        height: 4px;
        background: white;
        border-radius: 50%;
        box-shadow: 0 0 10px white, 0 0 20px white;
        animation: shoot 3s ease-in-out infinite;
        opacity: 0;
    }

    .shooting-star::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 100%;
        width: 100px;
        height: 2px;
        background: linear-gradient(to right, transparent, white);
        transform: translateY(-50%);
    }

    .shooting-star:nth-child(1) {
        top: 20%;
        left: 80%;
        animation-delay: 0s;
    }

    .shooting-star:nth-child(2) {
        top: 40%;
        left: 60%;
        animation-delay: 2s;
    }

    .shooting-star:nth-child(3) {
        top: 10%;
        left: 40%;
        animation-delay: 4s;
    }

    @keyframes shoot {
        0% { transform: translateX(0) translateY(0); opacity: 0; }
        10% { opacity: 1; }
        70% { opacity: 1; }
        100% { transform: translateX(-300px) translateY(200px); opacity: 0; }
    }

    /* Rocket */
    .rocket {
        position: absolute;
        bottom: 20%;
        right: 5%;
        font-size: 40px;
        animation: rocketFly 15s ease-in-out infinite;
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    }

    @keyframes rocketFly {
        0%, 100% { transform: translateY(0) rotate(-45deg); }
        25% { transform: translateY(-50px) translateX(-20px) rotate(-40deg); }
        50% { transform: translateY(-20px) translateX(-40px) rotate(-50deg); }
        75% { transform: translateY(-60px) translateX(-10px) rotate(-45deg); }
    }

    /* Login Container */
    .login-container {
        position: relative;
        width: 100%;
        max-width: 420px;
        padding: 20px;
        z-index: 10;
    }

    .login-card {
        background: var(--bg-card);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 24px;
        padding: 40px 35px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 
            0 25px 50px rgba(0, 0, 0, 0.3),
            0 0 100px rgba(18, 140, 126, 0.1);
        animation: cardAppear 0.8s ease-out;
    }

    @keyframes cardAppear {
        from {
            opacity: 0;
            transform: translateY(30px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* Logo */
    .logo-container {
        text-align: center;
        margin-bottom: 35px;
    }

    .logo {
        width: 120px;
        height: 120px;
        background: linear-gradient(135deg, #ffffff 0%, #898989 100%);
        border-radius: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        box-shadow: 0 15px 35px rgba(137 137, 137, 0.4), inset 0 -3px 10px rgba(0, 0, 0, 0.2);
        animation: logoPulse 3s ease-in-out infinite;
    }

    @keyframes logoPulse {
        0%, 100% { box-shadow: 0 15px 35px rgba(137, 137, 137, 0.4), inset 0 -3px 10px rgba(0, 0, 0, 0.2); }
        50% { box-shadow: 0 20px 50px rgba(213, 213, 213, 0.5), inset 0 -3px 10px rgba(0, 0, 0, 0.2); }
    }

    .logo svg {
        width: 60px;
        height: 60px;
        fill: white;
    }

    .logo-text {
        font-size: 22px;
        font-weight: 400;
        color: var(--text-light);
        letter-spacing: -1px;
    }

    .logo-subtitle {
        color: var(--text-muted);
        font-size: 14px;
        margin-top: 5px;
    }

    /* Form */
    .form-group {
        margin-bottom: 22px;
        position: relative;
    }

    .form-label {
        display: block;
        color: var(--text-muted);
        font-size: 13px;
        margin-bottom: 8px;
        font-weight: 500;
    }

    .input-wrapper {
        position: relative;
    }

    .input-icon {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        transition: color 0.3s ease;
        pointer-events: none;
    }

    .form-input {
        width: 100%;
        padding: 16px 50px 16px 40px;
        background: rgba(255, 255, 255, 0.05);
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 14px;
        color: var(--text-light);
        font-size: 15px;
        font-family: 'Vazirmatn', sans-serif;
        transition: all 0.3s ease;
        direction: ltr;
        text-align: left;
    }

    .form-input::placeholder {
        color: rgba(255, 255, 255, 0.3);
    }

    .form-input:focus {
        outline: none;
        border-color: var(--primary);
        background: rgba(18, 140, 126, 0.1);
        box-shadow: 0 0 0 4px rgba(18, 140, 126, 0.15);
    }

    .form-input:focus + .input-icon {
        color: var(--primary-light);
    }

    /* Password Toggle */
    .password-toggle {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--text-muted);
        cursor: pointer;
        padding: 5px;
        transition: color 0.3s ease;
    }

    .password-toggle:hover {
        color: var(--primary-light);
    }

    /* Remember & Forgot */
    .form-options {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
        font-size: 13px;
    }

    .remember-me {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--text-muted);
        cursor: pointer;
    }

    .remember-me input {
        display: none;
    }

    .checkbox-custom {
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .checkbox-custom svg {
        width: 12px;
        height: 12px;
        stroke: white;
        stroke-width: 3;
        opacity: 0;
        transform: scale(0);
        transition: all 0.2s ease;
    }

    .remember-me input:checked + .checkbox-custom {
        background: var(--primary);
        border-color: var(--primary);
    }

    .remember-me input:checked + .checkbox-custom svg {
        opacity: 1;
        transform: scale(1);
    }

    .forgot-link {
        color: var(--accent);
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .forgot-link:hover {
        color: var(--primary-light);
    }

    /* Submit Button */
    .submit-btn {
        width: 100%;
        padding: 16px;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
        border: none;
        border-radius: 14px;
        color: white;
        font-size: 16px;
        font-weight: 700;
        font-family: 'Vazirmatn', sans-serif;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .submit-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 35px rgba(18, 140, 126, 0.4);
    }

    .submit-btn:hover::before {
        left: 100%;
    }

    .submit-btn:active {
        transform: translateY(0);
    }

    /* Divider */
    .divider {
        display: flex;
        align-items: center;
        margin: 28px 0;
        color: var(--text-muted);
        font-size: 13px;
    }

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
    }

    .divider span {
        padding: 0 15px;
    }

    /* Social Login */
    .social-login {
        display: flex;
        gap: 12px;
    }

    .social-btn {
        flex: 1;
        padding: 14px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .social-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }

    .social-btn svg {
        width: 24px;
        height: 24px;
    }

    /* Register Link */
    .register-link {
        text-align: center;
        margin-top: 28px;
        color: var(--text-muted);
        font-size: 14px;
    }

    .register-link a {
        color: var(--primary-light);
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

    .register-link a:hover {
        color: var(--accent);
    }

    /* Responsive */
    @media (max-width: 480px) {
        .login-card {
            padding: 30px 25px;
        }

        .logo {
            width: 75px;
            height: 75px;
        }

        .logo-text {
            font-size: 24px;
        }

        .planet-1 { width: 80px; height: 80px; }
        .planet-2 { width: 50px; height: 50px; }
        .saturn { width: 70px; height: 70px; }
        .saturn::after { width: 110px; height: 110px; }
    }
