/* Root Variables */
:root {
  --font-primary: 'Orbitron', 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', 'Poppins', 'Manrope', system-ui, sans-serif;
  
  --color-cyan: #00FFFF;
  --color-purple: #8B5CF6;
  --color-pink: #EC4899;
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-cyan-100: #CCFFFF;
  --color-cyan-200: #99FFFF;
  --color-cyan-400: #00FFFF;
  
  --shadow-cyan: 0 0 20px rgba(0, 255, 255, 0.3);
  
  --border-radius: 0.75rem;
  --border-radius-xl: 2rem;
  
  --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
}

body {
  font-family: var(--font-body);
  background: var(--color-black);
  color: var(--color-white);
  overflow-x: hidden;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-primary);
  font-weight: 500;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utility Classes */
.full-width { width: 100%; }

/* Cosmic Background */
#cosmic-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.cosmic-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.3) 0%, rgba(0, 0, 0, 1) 50%, rgba(30, 64, 175, 0.3) 100%);
}

#stars-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  background: var(--color-cyan);
  border-radius: 50%;
  animation: twinkle 5s infinite ease-in-out;
}

.star.small { width: 1px; height: 1px; }
.star.large { width: 2px; height: 2px; }

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.5); }
}

.nebula {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.05) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: float 12s infinite ease-in-out;
}

.orb-1 {
  width: 16px;
  height: 16px;
  background: rgba(236, 72, 153, 0.6);
  top: 80px;
  left: 80px;
  animation-delay: 0s;
}

.orb-2 {
  width: 24px;
  height: 24px;
  background: rgba(0, 255, 255, 0.4);
  bottom: 160px;
  right: 128px;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(100px, -50px); }
  50% { transform: translate(0, 0); }
  75% { transform: translate(-80px, 80px); }
}

/* Buttons */
.btn {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  border: none;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  background: linear-gradient(to right, var(--color-cyan), var(--color-purple));
  color: white;
  border: 1px solid rgba(0, 255, 255, 0.5);
  box-shadow: var(--shadow-cyan);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
  transform: scale(1.05);
}

/* Sign-In Page Styles */
.signin-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.signin-card {
  max-width: 480px;
  width: 100%;
  background: rgba(10, 5, 30, 0.7);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: var(--border-radius-xl);
  padding: 2.5rem;
  box-shadow: 0 0 60px rgba(0, 255, 255, 0.3);
  animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 640px) {
    .signin-card {
        padding: 2rem;
    }
}

.signin-header {
  text-align: center;
  margin-bottom: 2rem;
}

.signin-title {
  font-size: 2rem;
  font-family: var(--font-primary);
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.signin-subtitle {
  color: var(--color-cyan-100);
  font-family: var(--font-body);
}

.signin-form .form-group {
  margin-bottom: 1.5rem;
}

.signin-form .form-label {
  display: block;
  color: var(--color-cyan-200);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.input-wrapper {
  position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-cyan-400);
    opacity: 0.7;
    pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.75rem;
  background-color: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: var(--border-radius);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control::placeholder {
    color: rgba(204, 255, 255, 0.5);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-cyan);
  background-color: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.form-link {
    color: var(--color-cyan-100);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.form-link:hover {
    color: var(--color-cyan);
    text-decoration: underline;
}

.form-link.bold {
    font-weight: 600;
}

.signin-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    color: var(--color-cyan-200);
}
