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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0e27;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Starfield Background */
.stars, .stars2, .stars3 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

.stars {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="2" height="2"><circle cx="1" cy="1" r="1" fill="%23fff"/></svg>') repeat;
    background-size: 200px 200px;
    animation: animateStars 50s linear infinite;
    opacity: 0.3;
}

.stars2 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="2" height="2"><circle cx="1" cy="1" r="1" fill="%2300d4ff"/></svg>') repeat;
    background-size: 300px 300px;
    animation: animateStars 100s linear infinite;
    opacity: 0.2;
}

.stars3 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="3" height="3"><circle cx="1.5" cy="1.5" r="1.5" fill="%237b2ff7"/></svg>') repeat;
    background-size: 400px 400px;
    animation: animateStars 150s linear infinite;
    opacity: 0.15;
}

@keyframes animateStars {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-1000px);
    }
}

.container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 212, 255, 0.2),
                0 0 60px 0 rgba(123, 47, 247, 0.1);
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #00d4ff;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #00d4ff;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.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;
}

.btn:hover:before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4),
                0 0 40px rgba(123, 47, 247, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #00d4ff;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
}

.link {
    color: #7b2ff7;
    text-decoration: none;
    text-align: center;
    display: block;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.link:hover {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.success {
    background: rgba(0, 255, 100, 0.1);
    border: 1px solid rgba(0, 255, 100, 0.3);
    color: #00ff64;
    box-shadow: 0 0 20px rgba(0, 255, 100, 0.2);
}

.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6464;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    font-size: 3em;
    font-weight: 900;
    letter-spacing: 8px;
    background: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(123, 47, 247, 0.8));
    }
}

.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #00d4ff;
    text-decoration: none;
    font-size: 1.1em;
    z-index: 10;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #7b2ff7;
    text-shadow: 0 0 10px rgba(123, 47, 247, 0.5);
    transform: translateX(-5px);
}
