
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%) !important;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated background particles */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00d4ff;
    border-radius: 50%;
    animation: float 6s infinite linear;
    opacity: 0.6;
    box-shadow: 0 0 10px #00d4ff;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Neon grid background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    z-index: 1;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.authentication-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.game-card {
    background: rgba(20, 25, 40, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid transparent;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 450px;
    width: 100%;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #ff6b35, #f7931e, #00d4ff, #7b68ee);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.game-card:hover::before {
    opacity: 0.1;
}

.game-card::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: rgba(20, 25, 40, 0.98);
    border-radius: 18px;
    z-index: -1;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.game-card-body {
    padding: 3rem 2.5rem;
    position: relative;
}

.game-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.game-logo i {
    font-size: 3rem;
    background: linear-gradient(45deg, #ff6b35, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
}

.game-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.game-subtitle {
    color: #a0a9c0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.welcome-text {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.sub-text {
    color: #8a92a5;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.game-form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.game-label {
    color: #00d4ff;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.game-input {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    padding: 0.875rem 1.25rem;
    width: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.game-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.game-input::placeholder {
    color: #6c757d;
}

.password-toggle {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8a92a5;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.password-toggle-btn:hover {
    color: #00d4ff;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0 2rem 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #00d4ff;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.game-checkbox:checked {
    background: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.game-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #000;
    font-weight: bold;
    font-size: 12px;
}

.checkbox-label {
    color: #a0a9c0;
    font-size: 0.9rem;
    cursor: pointer;
}

.forgot-link {
    color: #00d4ff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00d4ff;
    transition: width 0.3s ease;
}

.forgot-link:hover {
    color: #ffffff;
}

.forgot-link:hover::after {
    width: 100%;
}

.game-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.game-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;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
}

.game-btn:hover::before {
    left: 100%;
}

.game-btn:active {
    transform: translateY(0);
}

.register-text {
    text-align: center;
    margin: 2rem 0 1.5rem 0;
    color: #8a92a5;
}

.register-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.register-link:hover {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}

.divider-text {
    background: rgba(20, 25, 40, 0.95);
    color: #8a92a5;
    padding: 0 1rem;
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #8a92a5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-btn:hover {
    transform: translateY(-3px);
    color: #ffffff;
    border-color: #00d4ff;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.social-btn.facebook:hover { border-color: #3b5998; box-shadow: 0 8px 25px rgba(59, 89, 152, 0.3); }
.social-btn.twitter:hover { border-color: #1da1f2; box-shadow: 0 8px 25px rgba(29, 161, 242, 0.3); }
.social-btn.github:hover { border-color: #333; box-shadow: 0 8px 25px rgba(51, 51, 51, 0.3); }
.social-btn.google:hover { border-color: #db4437; box-shadow: 0 8px 25px rgba(219, 68, 55, 0.3); }

/* Responsive design */
@media (max-width: 768px) {
    .authentication-wrapper {
        padding: 1rem;
    }
    
    .game-card-body {
        padding: 2rem 1.5rem;
    }
    
    .game-title {
        font-size: 2rem;
    }
}

/* Loading animation for button */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
