:root {
    --space-dark: #0a0e27;
    --space-blue: #1a1f3a;
    --cosmic-purple: #6366f1;
    --stellar-pink: #ec4899;
    --nebula-cyan: #06b6d4;
    --star-gold: #fbbf24;
}

body {
    background: linear-gradient(135deg, var(--space-dark), var(--space-blue));
    color: #e2e8f0;
    min-height: 100vh;
}


#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star-decoration {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2.5s infinite;
    z-index: -1;
    /* Place behind content */
    pointer-events: none;
    /* Allow clicks to pass through */
}

@keyframes twinkle {
    0%, 100% { opacity: 0.1;}
    50% { opacity: 1;}
}

.custom-cosmic {
    background: linear-gradient(45deg, var(--cosmic-purple), var(--stellar-pink));
    border: none;
    color: white;
    padding: 10px 30px;
    border-radius: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.custom-cosmic:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.5);
    color: white;
    cursor: pointer;
}


.navbar, .signupForm, .termsModal {
    background: rgba(26, 31, 58, 0.8) !important;
    backdrop-filter: blur(20px); /* remove stars behind navbar */
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    user-select: none;
}

.logo {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--stellar-pink);
}

.signupForm {
    border-radius: 20px;
    max-width: 650px;
    padding: 40px 50px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}   

.termsModal {
    border: 1px solid rgba(99, 102, 241, 0.3);
    user-select: auto;
}

header h1 {
    font-size: 3rem;
    color: var(--nebula-cyan);
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

header p {
    font-size: 1.3rem;
    color: var(--star-gold);
    text-shadow: 0 0 30px rgba(219, 152, 43, 0.801);
    opacity: 0.67;
    letter-spacing: 1px;
    margin-bottom: 60px;
}

.form-title{
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--stellar-pink);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--nebula-cyan);
    opacity: 0.9;
    margin-top: 0.5rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #e2e8f0;
    padding: 0.7rem;
}

.form-control:focus{
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--cosmic-purple);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    color: #e2e8f0;
    animation: inputGlow 1.5s infinite;
}

.form-control::placeholder {
    color: var(--nebula-cyan);
    opacity: 0.8;
}

label {
    color: var(--nebula-cyan);
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
    cursor: pointer;
}

.form-check-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

label a {
    color: var(--stellar-pink);
    transition: color 0.3s;
    cursor: pointer;
}

.form-check-label a:hover {
    color: var(--nebula-cyan);
}

@keyframes inputGlow {  
    0%, 100% {box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);}
    50% {box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);}
}