* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    min-height: 100vh;
    background: #04091a;
    font-family: 'Rajdhani', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Animated background particles */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
}

/* Glowing orb background */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: pulse-orb 6s ease-in-out infinite alternate;
}
.bg-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,150,255,0.18) 0%, transparent 70%);
    top: -100px; left: -100px;
    animation-delay: 0s;
}
.bg-orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(180,0,255,0.15) 0%, transparent 70%);
    bottom: -80px; right: -80px;
    animation-delay: 3s;
}
.bg-orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0,220,180,0.10) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1.5s;
}

@keyframes pulse-orb {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.12); }
}

/* Grid lines background */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,150,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,150,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

/* Main card */
.login-card {
    position: relative;
    z-index: 10;
    width: 420px;
    background: linear-gradient(145deg, rgba(8,20,50,0.95) 0%, rgba(5,12,35,0.98) 100%);
    border: 1px solid rgba(0,150,255,0.3);
    border-radius: 4px;
    padding: 0;
    box-shadow:
        0 0 40px rgba(0,150,255,0.12),
        0 0 80px rgba(0,100,200,0.08),
        inset 0 1px 0 rgba(255,255,255,0.05);
    animation: card-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    overflow: hidden;
}

@keyframes card-enter {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Top accent bar */
.card-accent-top {
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #0096ff 30%, #00e5ff 50%, #7c3aed 70%, transparent 100%);
    position: relative;
}
.card-accent-top::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(6px);
    opacity: 0.8;
}

/* Corner decorations */
.card-corner {
    position: absolute;
    width: 18px; height: 18px;
    z-index: 2;
}
.card-corner::before, .card-corner::after {
    content: '';
    position: absolute;
    background: #00e5ff;
}
.card-corner::before { width: 100%; height: 1.5px; top: 0; left: 0; }
.card-corner::after  { width: 1.5px; height: 100%; top: 0; left: 0; }
.card-corner.tr { top: 3px; right: 0; transform: scaleX(-1); }
.card-corner.bl { bottom: 0; left: 0; transform: scaleY(-1); }
.card-corner.br { bottom: 0; right: 0; transform: scale(-1, -1); }
.card-corner.tl { top: 3px; left: 0; }

.card-body {
    padding: 36px 40px 40px;
}

/* Logo / title area */
.logo-area {
    text-align: center;
    margin-bottom: 32px;
    animation: card-enter 0.9s 0.1s cubic-bezier(0.22,1,0.36,1) both;
}

.logo-emblem {
    width: 72px; height: 72px;
    margin: 0 auto 16px;
    position: relative;
}
.logo-emblem svg { width: 100%; height: 100%; }

.logo-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #a8d8ff 40%, #00e5ff 70%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 12px rgba(0,200,255,0.4));
}

.logo-subtitle {
    font-size: 11px;
    letter-spacing: 5px;
    color: rgba(0,200,255,0.5);
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 600;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    opacity: 0.5;
}
.divider-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,200,255,0.6), transparent); }
.divider-diamond {
    width: 6px; height: 6px;
    border: 1px solid rgba(0,200,255,0.8);
    transform: rotate(45deg);
}

/* Form */
.form-group {
    margin-bottom: 20px;
    animation: card-enter 1s 0.15s cubic-bezier(0.22,1,0.36,1) both;
}
.form-group:nth-child(2) { animation-delay: 0.2s; }

.form-label {
    display: block;
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(0,200,255,0.6);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s;
}

.form-input {
    width: 100%;
    background: rgba(0,150,255,0.05);
    border: 1px solid rgba(0,150,255,0.2);
    border-radius: 2px;
    padding: 12px 14px 12px 42px;
    color: #e8f4ff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    outline: none;
    transition: all 0.25s;
}
.form-input::placeholder { color: rgba(150,200,255,0.25); font-weight: 400; letter-spacing: 0; }
.form-input:focus {
    background: rgba(0,150,255,0.1);
    border-color: rgba(0,200,255,0.6);
    box-shadow: 0 0 0 3px rgba(0,200,255,0.08), 0 0 16px rgba(0,200,255,0.1);
}
.form-input:focus + .input-line { width: 100%; }
.form-input:focus ~ .input-icon { opacity: 0.9; }

.input-line {
    position: absolute;
    bottom: 0; left: 0;
    height: 1px;
    width: 0;
    background: linear-gradient(90deg, #00e5ff, #7c3aed);
    transition: width 0.3s ease;
    border-radius: 1px;
}

/* Remember / Forgot */
.form-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    animation: card-enter 1s 0.25s cubic-bezier(0.22,1,0.36,1) both;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: rgba(150,200,255,0.5);
    font-weight: 600;
    letter-spacing: 0.5px;
    user-select: none;
}
.remember-label input[type=checkbox] { display: none; }
.custom-check {
    width: 14px; height: 14px;
    border: 1px solid rgba(0,200,255,0.3);
    border-radius: 2px;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}
.remember-label input:checked ~ .custom-check {
    background: rgba(0,200,255,0.2);
    border-color: #00e5ff;
}
.remember-label input:checked ~ .custom-check::after {
    content: '';
    position: absolute;
    left: 3px; top: 1px;
    width: 5px; height: 8px;
    border: 1.5px solid #00e5ff;
    border-top: none;
    border-left: none;
    transform: rotate(40deg);
}

.forgot-link {
    font-size: 12px;
    color: rgba(0,200,255,0.45);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    transition: color 0.2s;
}
.forgot-link:hover { color: #00e5ff; }

/* Login button */
.btn-login {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 5px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #e8f4ff;
    overflow: hidden;
    border-radius: 2px;
    animation: card-enter 1s 0.3s cubic-bezier(0.22,1,0.36,1) both;
    transition: transform 0.15s, box-shadow 0.2s;
}

.btn-login-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0052cc 0%, #0096ff 40%, #00bcd4 60%, #7c3aed 100%);
    z-index: 0;
    transition: opacity 0.2s;
}
.btn-login-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    z-index: 1;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}
.btn-login:hover .btn-login-shimmer { transform: translateX(100%); }
.btn-login:hover { box-shadow: 0 0 24px rgba(0,150,255,0.4), 0 0 60px rgba(0,100,200,0.2); transform: translateY(-1px); }
.btn-login:active { transform: scale(0.98) translateY(0); }
.btn-login span { position: relative; z-index: 2; }

/* Glow border on button */
.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 2px;
    z-index: 3;
}

/* Or divider */
.or-divider {
    text-align: center;
    font-size: 11px;
    color: rgba(100,150,200,0.3);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 22px 0;
    position: relative;
    animation: card-enter 1s 0.35s cubic-bezier(0.22,1,0.36,1) both;
}
.or-divider::before, .or-divider::after {
    content: '';
    position: absolute;
    top: 50%; width: 38%;
    height: 1px;
    background: rgba(0,150,255,0.12);
}
.or-divider::before { left: 0; }
.or-divider::after { right: 0; }

/* Social buttons */
.social-row {
    display: flex;
    gap: 12px;
    animation: card-enter 1s 0.4s cubic-bezier(0.22,1,0.36,1) both;
}

.btn-social {
    flex: 1;
    padding: 10px 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(180,210,255,0.5);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.2s;
}
.btn-social:hover {
    background: rgba(0,150,255,0.08);
    border-color: rgba(0,150,255,0.3);
    color: rgba(180,220,255,0.9);
    box-shadow: 0 0 12px rgba(0,120,255,0.1);
}
.btn-social svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Footer */
.card-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: rgba(100,150,200,0.35);
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: card-enter 1s 0.45s cubic-bezier(0.22,1,0.36,1) both;
}
.card-footer a {
    color: rgba(0,200,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
}
.card-footer a:hover { color: #00e5ff; }

/* Floating particles */
.particle {
    position: fixed;
    width: 2px; height: 2px;
    background: rgba(0,200,255,0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: float-up linear infinite;
    z-index: 1;
}
@keyframes float-up {
    0%   { transform: translateY(100vh) translateX(0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-10vh) translateX(30px) scale(0); opacity: 0; }
}