:root {
    --primary-purple: #a855f7;
    --secondary-purple: #7c3aed;
    --dark-purple: #5b21b6;
    --cyber-pink: #ec4899;
    --cyber-blue: #3b82f6;
    --dark-bg: #0a0118;
    --card-bg: rgba(20, 5, 40, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --glow-purple: rgba(168, 85, 247, 0.5);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Rajdhani', sans-serif;
    background: #fff;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    height: 100vh;
    width: 100vw;
}
/* Animated Background */
.animated-background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background:
        radial-gradient(circle at 10% 20%, rgba(168,85,247,0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236,72,153,0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(59,130,246,0.1) 0%, transparent 50%);
    background-color: var(--dark-bg);
}
.grid-overlay {
    position: absolute; width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(168,85,247,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168,85,247,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}
.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-purple), transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}
.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--cyber-pink), transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}
.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--cyber-blue), transparent);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -100px) scale(1.1); }
    66% { transform: translate(-100px, 100px) scale(0.9); }
}
.gaming-background {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: hidden;
}
.floating-gaming-icon {
    position: absolute;
    font-size: 3rem;
    color: var(--primary-purple);
    opacity: 0.12;
    animation: floatAround 20s ease-in-out infinite;
    text-shadow: 0 0 20px var(--glow-purple);
}
.icon-1 { top: 10%; left: 10%; animation-delay: 0s; animation-duration: 15s; }
.icon-2 { top: 20%; left: 80%; animation-delay: 2s; animation-duration: 18s; }
.icon-3 { top: 60%; left: 20%; animation-delay: 4s; animation-duration: 20s; }
.icon-4 { top: 70%; left: 80%; animation-delay: 1s; animation-duration: 16s; }
.icon-5 { top: 40%; left: 50%; animation-delay: 3s; animation-duration: 17s; }
@keyframes floatAround {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.08; }
    25% { transform: translate(30px, -50px) rotate(90deg) scale(1.2); opacity: 0.15; }
    50% { transform: translate(-20px, -100px) rotate(180deg) scale(1.1); opacity: 0.12; }
    75% { transform: translate(-50px, -50px) rotate(270deg) scale(1.3); opacity: 0.18; }
}
.hero-section {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.cyber-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem 1.2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 320px;
    max-width: 92%;
    text-align: center;
    z-index: 10;
}
.cyber-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px var(--glow-purple);
}
.card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1.5px solid rgba(168, 85, 247, 0.28);
    border-radius: 15px;
    pointer-events: none;
}
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow-purple), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.cyber-card:hover .card-glow {
    opacity: 0.32;
}
.card-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-purple);
}
.card-corner.tl {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}
.card-corner.tr {
    top: -1px;
    right: -1px;
    border-left: none;
    border-bottom: none;
}
.card-corner.bl {
    bottom: -1px;
    left: -1px;
    border-right: none;
    border-top: none;
}
.card-corner.br {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}
.login-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border-radius: 12px;
    font-size: 1.8rem;
    color: white;
    position: relative;
    box-shadow: 0 8px 25px var(--glow-purple);
}
.icon-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-purple);
    border-radius: 12px;
    animation: pulse-border 2s infinite;
}
@keyframes pulse-border {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}
h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, white, var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
}
/* Buttons container — stacked vertically */
.buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}
.cyber-btn-large {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border: 2px solid var(--primary-purple);
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    box-shadow: 0 5px 20px var(--glow-purple);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
.cyber-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow-purple);
}
.cyber-btn-large.secondary {
    background: transparent;
    border: 2px solid var(--primary-purple);
}
.cyber-btn-large.secondary:hover {
    background: rgba(168, 85, 247, 0.2);
}
.google-logo {
    height: 1.1em;
    width: auto;
    margin-right: 0.4rem;
    vertical-align: middle;
}


/* === Form styles === */
.hidden {
    display: none;
}

/* Slide-in animation for entire card */
.card-slide-in {
  animation: slideCardInFromRight 0.5s forwards;
}

@keyframes slideCardInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Slide-out animation for entire card */
.card-slide-out {
  animation: slideCardOutToRight 0.5s forwards;
}

@keyframes slideCardOutToRight {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Input groups and fields */
.signup-form {
    text-align: left;
    margin-top: 0.5rem;
}

.cyber-input-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.cyber-input {
    width: 100%;
    background: rgba(20,5,40,0.5);
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: 8px;
    padding: 0.75rem;
    padding-right: 2.5rem;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cyber-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 20px var(--glow-purple);
}

.cyber-label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.cyber-input:focus + .cyber-label,
.cyber-input:not(:placeholder-shown) + .cyber-label {
    top: -0.6rem;
    left: 0.7rem;
    font-size: 0.75rem;
    color: var(--primary-purple);
    background: var(--dark-bg);
    padding: 0 0.4rem;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-purple);
    transition: width 0.3s ease;
}

.cyber-input:focus ~ .input-line {
    width: 100%;
}

/* Account type dropdown */
select.cyber-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
    cursor: pointer;
}

/* Password toggle icon */
.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
    font-size: 0.95rem;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--primary-purple);
}

/* Password strength indicator */
.password-strength {
    margin-top: -1rem;
    margin-bottom: 1rem;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: rgba(168,85,247,0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-purple);
    transition: all 0.3s ease;
    border-radius: 10px;
}

.strength-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
}

/* Inline alert styles */
.inline-alert {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border: 2px solid;
    user-select: none;
    box-shadow: 0 0 10px rgba(255,0,0,0.5);
}

.error-alert {
    color: #f87171;
    border-color: #f87171;
    background: rgba(248,113,113,0.12);
}

/* Form buttons container */
.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.back-btn {
    flex: 1;
}

.reset-btn {
    flex: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .cyber-card { width: 85%; padding: 1.3rem 1rem; }
    .login-icon { width: 55px; height: 55px; font-size: 1.6rem; margin-bottom: 1rem;}
    h3 { font-size: 1.3rem; }
    .login-subtitle { font-size: 0.8rem; }
    .cyber-btn-large { padding: 0.7rem 1rem; font-size: 0.9rem; }
}
@media (max-width: 480px) {
    .cyber-card { width: 98%; padding: 1rem 0.6rem; }
    .login-icon { width: 45px; height: 45px; font-size: 1.3rem; margin-bottom: 0.6rem; }
    h3 { font-size: 1rem; }
}


/* ===========================
   LOGIN ICON - SMALLER
   =========================== */
.login-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border-radius: 12px;
    font-size: 1.8rem;
    color: white;
    position: relative;
    box-shadow: 0 8px 25px var(--glow-purple);
}

.icon-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-purple);
    border-radius: 12px;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* ===========================
   LOGIN CONTENT - COMPACT
   =========================== */
.login-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, white, var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
}

/* ===========================
   CYBER INPUT FIELDS - COMPACT
   =========================== */
.cyber-input-group {
    position: relative;
    margin-bottom: 1rem;
    text-align: left;
}

.cyber-input {
    width: 100%;
    background: rgba(20, 5, 40, 0.5);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cyber-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 20px var(--glow-purple);
}

.cyber-label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.cyber-input:focus + .cyber-label,
.cyber-input:not(:placeholder-shown) + .cyber-label {
    top: -0.6rem;
    left: 0.7rem;
    font-size: 0.75rem;
    color: var(--primary-purple);
    background: var(--dark-bg);
    padding: 0 0.4rem;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-purple);
    transition: width 0.3s ease;
}

.cyber-input:focus ~ .input-line {
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.password-toggle:hover {
    color: var(--primary-purple);
}

/* ===========================
   FORM OPTIONS - COMPACT
   =========================== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    font-size: 0.8rem;
}

.cyber-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
}

.cyber-checkbox input {
    display: none;
}

.checkmark {
    width: 14px;
    height: 14px;
    border: 2px solid var(--primary-purple);
    border-radius: 3px;
    margin-right: 0.35rem;
    position: relative;
    transition: all 0.3s ease;
}

.cyber-checkbox input:checked + .checkmark {
    background: var(--primary-purple);
}

.cyber-checkbox input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -3px;
    left: 1px;
    color: white;
    font-size: 10px;
}

.forgot-link {
    color: var(--primary-purple);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: var(--cyber-pink);
}

/* ===========================
   BUTTONS - COMPACT
   =========================== */
.cyber-btn-large {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border: 2px solid var(--primary-purple);
    color: white;
    padding: 0.75rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px var(--glow-purple);
    border-radius: 8px;
    margin-bottom: 0.7rem;
}

.cyber-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow-purple);
}

.cyber-btn-large.secondary {
    background: transparent;
    border: 2px solid var(--primary-purple);
}

.cyber-btn-large.secondary:hover {
    background: rgba(168, 85, 247, 0.2);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cyber-btn-large:hover .btn-shine {
    left: 100%;
}

.google-logo {
    height: 1.1em;
    width: auto;
    margin-right: 0.4rem;
    vertical-align: middle;
}

/* ===========================
   DIVIDER - COMPACT
   =========================== */
.divider {
    display: flex;
    align-items: center;
    margin: 1.2rem 0;
    color: var(--text-secondary);
}

.divider span {
    background: var(--card-bg);
    padding: 0 0.7rem;
    z-index: 1;
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
}

/* ===========================
   RESPONSIVE - MOBILE OPTIMIZED
   =========================== */
@media (max-width: 768px) {
    .cyber-card {
        width: 85%;
        padding: 1.3rem 1rem;
    }
    
    .login-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .login-card h3 {
        font-size: 1.3rem;
    }
    
    .login-subtitle {
        font-size: 0.8rem;
    }
    
    .cyber-input {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
    
    .cyber-label {
        font-size: 0.85rem;
    }
    
    .cyber-btn-large {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .floating-gaming-icon {
        font-size: 2rem;
    }
    
    .icon-3, .icon-4, .icon-5 {
        display: none;
    }
}

@media (max-width: 480px) {
    .cyber-card {
        width: 98%;
        padding: 1rem 0.6rem;
    }
    
    .login-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }
    
    .login-card h3 {
        font-size: 1rem;
    }
    
    .form-options {
        font-size: 0.7rem;
    }
}
