*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            --accent:      #c902e3;
            --accent-rgb:  201, 2, 227;
            --gold:        #ffd700;
            --card-bg:     rgba(255,255,255,0.06);
            --card-border: rgba(255,255,255,0.1);
            --input-bg:    rgba(255,255,255,0.07);
            --input-border:rgba(255,255,255,0.15);
            --text:        #ffffff;
            --text-soft:   rgba(255,255,255,0.65);
            --text-muted:  rgba(255,255,255,0.35);
        }

        ::-webkit-scrollbar { width: 4px; }
        ::-webkit-scrollbar-thumb { background: #3d0070; border-radius: 4px; }

        html, body { height: 100%; font-family: 'Poppins', sans-serif; color: var(--text); }

        body {
            background:
                radial-gradient(ellipse 80% 55% at 50% 0%,   #5a0fa0 0%, transparent 60%),
                radial-gradient(ellipse 55% 40% at 10% 80%,  #3d0070 0%, transparent 55%),
                radial-gradient(ellipse 45% 35% at 90% 80%,  #2d0060 0%, transparent 55%),
                radial-gradient(ellipse 100% 100% at 50% 50%,#140025 0%, #06000e 100%);
            background-attachment: fixed;
            display: flex; align-items: center; justify-content: center;
            min-height: 100vh;
            padding: 20px 12px;
            overflow-x: hidden;
            position: relative;
        }

        /* ── Twinkling stars ── */
        body::before {
            content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
            background-image:
                radial-gradient(1px 1px at 8%  12%, rgba(255,215,0,0.7)   0%, transparent 100%),
                radial-gradient(1px 1px at 22% 38%, rgba(255,255,255,0.5) 0%, transparent 100%),
                radial-gradient(1.5px 1.5px at 37% 7%,  rgba(255,215,0,0.5)   0%, transparent 100%),
                radial-gradient(1px 1px at 55% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
                radial-gradient(2px 2px at 67%  4%, rgba(255,215,0,0.6)   0%, transparent 100%),
                radial-gradient(1px 1px at 80% 32%, rgba(255,255,255,0.5) 0%, transparent 100%),
                radial-gradient(1px 1px at 14% 63%, rgba(255,255,255,0.3) 0%, transparent 100%),
                radial-gradient(1px 1px at 45% 87%, rgba(255,215,0,0.5)   0%, transparent 100%),
                radial-gradient(2px 2px at 72% 75%, rgba(255,255,255,0.4) 0%, transparent 100%),
                radial-gradient(2px 2px at 95% 54%, rgba(255,215,0,0.6)   0%, transparent 100%);
            animation: twinkle 4s ease-in-out infinite alternate;
        }
        @keyframes twinkle { 0% { opacity: 0.5; } 100% { opacity: 1; } }

        /* Particle canvas */
        #particle-canvas { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

        /* ── Card ── */
        .card {
            position: relative; z-index: 10;
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 16px;
            padding: 22px 20px 18px;
            width: 100%; max-width: 390px;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 8px 32px rgba(0,0,0,0.5);
            animation: cardIn 0.6s cubic-bezier(0.22,1,0.36,1) both;
        }
        @keyframes cardIn {
            from { opacity: 0; transform: translateY(30px) scale(0.97); }
            to   { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* ── Logo row ── */
        .logo-area {
            display: flex; align-items: center; gap: 9px;
            margin-bottom: 14px;
        }
        .logo-ring {
            width: 38px; height: 38px; flex-shrink: 0;
            border-radius: 50%;
            background: conic-gradient(from 0deg, var(--gold), var(--accent), var(--gold));
            padding: 2px;
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 0 14px rgba(var(--accent-rgb),0.55), 0 0 28px rgba(255,215,0,0.2);
            animation: ringRotate 6s linear infinite;
        }
        @keyframes ringRotate { to { filter: hue-rotate(360deg); } }
        .logo-inner {
            width: 100%; height: 100%; border-radius: 50%;
            background: #1a0030;
            display: flex; align-items: center; justify-content: center;
            overflow: hidden;
        }
        .logo-inner img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
        .logo-inner i   { font-size: 15px; color: var(--gold); }
        .logo-text { flex: 1; min-width: 0; }
        .site-title { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.2; }
        .site-sub   { font-size: 10px; color: var(--text-muted); }

        /* ── Gold divider ── */
        .gold-divider {
            height: 1px; margin: 0 0 14px;
            background: linear-gradient(90deg, transparent, rgba(255,215,0,0.35), transparent);
        }

        /* ── Alert ── */
        .alert {
            display: flex; align-items: center; gap: 8px;
            padding: 8px 11px; border-radius: 8px;
            font-size: 12px; font-weight: 500; margin-bottom: 12px;
        }
        .alert-error   { background: rgba(239,68,68,0.12);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); }
        .alert-warning { background: rgba(251,191,36,0.1);  color: #fcd34d; border: 1px solid rgba(251,191,36,0.25); }
        .alert-info    { background: rgba(var(--accent-rgb),0.1); color: rgba(255,255,255,0.8); border: 1px solid rgba(var(--accent-rgb),0.25); }
        .alert i { font-size: 13px; flex-shrink: 0; }

        /* ── Fields ── */
        .field { margin-bottom: 10px; }
        label {
            display: block; font-size: 10.5px; font-weight: 600;
            color: var(--text-soft); margin-bottom: 4px; letter-spacing: 0.2px;
        }
        .field-top {
            display: flex; justify-content: space-between; align-items: center;
            margin-bottom: 4px;
        }
        .field-top label { margin-bottom: 0; }
        .link-small {
            font-size: 10.5px; color: var(--gold); font-weight: 500;
            text-decoration: none; opacity: 0.85;
        }
        .link-small:hover { opacity: 1; text-decoration: underline; }

        .input-wrap { position: relative; }

        input[type="text"],
        input[type="password"],
        input[type="tel"],
        input[type="email"] {
            width: 100%; height: 40px;
            padding: 0 36px 0 11px;
            background: var(--input-bg);
            border: 1.5px solid var(--input-border);
            border-radius: 8px;
            font-family: 'Poppins', sans-serif;
            font-size: 12.5px; color: var(--text);
            outline: none;
            transition: border-color 0.15s, box-shadow 0.15s;
            appearance: none;
        }
        input::placeholder { color: var(--text-muted); font-size: 12px; }
        input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.22);
            background: rgba(255,255,255,0.09);
        }
        input.err { border-color: #ef4444; background: rgba(239,68,68,0.07); }
        input.err:focus { box-shadow: 0 0 0 2px rgba(239,68,68,0.2); }

        /* Password has eye icon */
        #password { padding-right: 38px; }

        .toggle-pwd {
            position: absolute; right: 10px; top: 50%;
            transform: translateY(-50%);
            background: none; border: none; cursor: pointer;
            color: var(--text-muted); font-size: 13px; padding: 2px;
            transition: color 0.15s;
        }
        .toggle-pwd:hover { color: var(--gold); }

        /* ── Remember + Forgot row ── */
        .remember-row {
            display: flex; align-items: center; justify-content: space-between;
            margin: 6px 0 12px;
        }
        .remember {
            display: flex; align-items: center; gap: 6px;
        }
        .remember input[type="checkbox"] {
            width: 13px; height: 13px;
            accent-color: var(--accent); cursor: pointer;
            flex-shrink: 0;
        }
        .remember label {
            font-size: 11px; color: var(--text-soft);
            cursor: pointer; margin-bottom: 0; font-weight: 400; letter-spacing: 0;
        }

        /* ── Submit Button ── */
        .btn {
            width: 100%; height: 40px;
            background: var(--accent);
            color: #fff; border: none; border-radius: 9px;
            font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 700;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center; gap: 7px;
            box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.4);
            transition: filter 0.15s;
        }
        .btn:hover:not(:disabled) { filter: brightness(1.08); }
        .btn:disabled { opacity: 0.5; cursor: not-allowed; }

        .spinner {
            display: none; width: 15px; height: 15px;
            border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
            border-radius: 50%; animation: spin 0.6s linear infinite;
        }
        .btn.loading .btn-text { display: none; }
        .btn.loading .spinner  { display: block; }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* ── Divider ── */
        .or-divider {
            display: flex; align-items: center; gap: 10px;
            margin: 14px 0;
        }
        .or-line { flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
        .or-text  { font-size: 10.5px; color: var(--text-muted); }

        /* ── Social row ── */
        .social-row { display: flex; gap: 8px; margin-bottom: 2px; }
        .social-btn {
            flex: 1; height: 36px;
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 8px;
            background: rgba(255,255,255,0.05);
            display: flex; align-items: center; justify-content: center;
            color: var(--text-soft); font-size: 14px;
            cursor: pointer; text-decoration: none;
            transition: border-color 0.15s, color 0.15s, background 0.15s;
        }
        .social-btn:hover {
            border-color: var(--gold);
            color: var(--gold);
            background: rgba(255,215,0,0.06);
        }

        /* ── Footer ── */
        .card-footer {
            text-align: center; margin-top: 12px;
            font-size: 11.5px; color: var(--text-muted);
        }
        .card-footer a { color: var(--gold); text-decoration: none; font-weight: 600; }
        .card-footer a:hover { text-decoration: underline; }

        .copy-line {
            text-align: center; margin-top: 8px; padding-top: 8px;
            border-top: 1px solid rgba(255,255,255,0.07);
            font-size: 9.5px; color: rgba(255,255,255,0.18);
        }

        /* ── Login tip badge ── */
        .login-tip {
            display: flex; align-items: center; gap: 5px;
            background: rgba(255,215,0,0.05); border: 1px solid rgba(255,215,0,0.15);
            border-radius: 5px; padding: 3px 8px; margin-bottom: 10px;
            font-size: 10.5px; color: rgba(255,215,0,0.7);
        }
        .login-tip i { font-size: 9px; color: var(--gold); flex-shrink: 0; }

        @media (max-width: 380px) { .card { padding: 16px 14px 13px; } }