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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #0066ff 0%, #001a4d 50%, #000000 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(0, 10, 30, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.3);
    border-bottom: 1px solid rgba(0, 153, 255, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}



/* Login & Register Page Styles */
body {
    position: relative;
    overflow-x: hidden;
}

/* Animated background particles effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 204, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 153, 255, 0.08) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(10px, -10px) scale(1.05); }
    50% { transform: translate(-10px, 10px) scale(0.95); }
    75% { transform: translate(10px, 10px) scale(1.02); }
}

/* Container styling for login/register */
.container {
    position: relative;
    z-index: 1;
}

.container > div {
    animation: slideInUp 0.8s ease;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 204, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.container > div:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(0, 204, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Heading styles */
.container h1 {
    color: #ffffff;
    font-size: 2.2rem;
    text-align: center;
    background: linear-gradient(45deg, #ffffff, #00ccff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 204, 255, 0.6);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

/* Error and success messages */
.container > div > div[style*="color:#ff4747"],
.container > div > div[style*="color:#00ffa8"] {
    background: rgba(0, 20, 60, 0.8) !important;
    padding: 1rem !important;
    border-radius: 12px !important;
    border: 1px solid !important;
    backdrop-filter: blur(10px) !important;
    animation: shakeIn 0.6s ease !important;
}

.container > div > div[style*="color:#ff4747"] {
    border-color: rgba(255, 71, 71, 0.5) !important;
    box-shadow: 0 0 20px rgba(255, 71, 71, 0.3) !important;
}

.container > div > div[style*="color:#00ffa8"] {
    border-color: rgba(0, 255, 168, 0.5) !important;
    box-shadow: 0 0 20px rgba(0, 255, 168, 0.3) !important;
}

@keyframes shakeIn {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Form styling */
.container form {
    margin-top: 1.5rem;
}

.container form label {
    color: #e0f4ff;
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
}

/* Input fields */
.container form input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 20, 60, 0.8);
    border: 1px solid rgba(0, 153, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.container form input:focus {
    outline: none;
    background: rgba(0, 30, 80, 0.9);
    border-color: #00ccff;
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 204, 255, 0.5),
        0 0 40px rgba(0, 204, 255, 0.2);
    transform: translateY(-2px);
}

.container form input::placeholder {
    color: #7db8e8;
}

.container form input:hover {
    border-color: rgba(0, 204, 255, 0.5);
}

/* Submit button */
.container form button[type="submit"] {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(45deg, #0066ff, #00ccff);
    border: 1px solid rgba(0, 204, 255, 0.3);
    border-radius: 25px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(0, 102, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.container form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.container form button[type="submit"]:hover::before {
    width: 300px;
    height: 300px;
}

.container form button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(0, 204, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(0, 204, 255, 0.8);
}

.container form button[type="submit"]:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(0, 204, 255, 0.5);
}

/* Link styling */
.container p {
    color: #b3e0ff;
    text-align: center;
    font-size: 1rem;
}

.container p a {
    color: #00ccff;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.4);
}

.container p a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #00ccff, #0066ff);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 204, 255, 0.6);
}

.container p a:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(0, 204, 255, 0.8);
}

.container p a:hover::after {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container h1 {
        font-size: 1.8rem;
    }
    
    .container > div {
        margin: 40px auto !important;
        padding: 20px !important;
    }
    
    .container form input {
        padding: 0.9rem;
    }
    
    .container form button[type="submit"] {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Loading animation for button */
.container form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.4; }
}