/* Modern, Futuristic Authentication Pages Style - Light Mode Version */
:root {
  /* Light mode color palette */
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --primary-gradient: linear-gradient(135deg, #4361ee, #3a0ca3);
  --secondary: #7209b7;
  --accent: #4cc9f0;
  --accent-light: #80dfff;
  --dark: #2d3748;
  --light: #f8f9fa;
  --white: #ffffff;
  --error: #e63946;
  --success: #06d6a0;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-color: #2d3748;
  --label-color: #4a5568;
  --border-color: #e2e8f0;
  --input-bg: #f1f5f9;
  
  /* Shadows */
  --glow-shadow: 0 0 15px rgba(76, 201, 240, 0.3);
  --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  --button-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
  
  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

body {
  font-family: 'Inter', 'Roboto', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(67, 97, 238, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(114, 9, 183, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(76, 201, 240, 0.03) 0%, transparent 50%);
  position: relative;
}

/* Subtle background elements */
body::before, body::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  z-index: -1;
}

body::before {
  background: radial-gradient(circle, rgba(76, 201, 240, 0.06) 0%, transparent 70%);
  top: -250px;
  left: -250px;
  animation: float 20s infinite alternate ease-in-out;
}

body::after {
  background: radial-gradient(circle, rgba(114, 9, 183, 0.05) 0%, transparent 70%);
  bottom: -250px;
  right: -250px;
  animation: float 25s infinite alternate-reverse ease-in-out;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, 50px) scale(1.2); }
  100% { transform: translate(50px, 100px) scale(1); }
}

.auth-container {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 40px;
  width: 100%;
  max-width: 450px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  z-index: 1;
}

.logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo img {
  max-width: 150px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

h2 {
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  font-size: 28px;
  color: var(--primary);
}

.input-group {
  position: relative;
  margin-bottom: 28px;
}

.input-label {
  position: absolute;
  top: -22px; /* Position above the input field */
  left: 0;
  color: var(--label-color);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--dark);
  font-size: 16px;
  transition: all 0.3s ease;
  outline: none;
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: var(--glow-shadow);
  background: var(--white);
}

.auth-input::placeholder {
  color: #a0aec0;
}

.btn-auth {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--button-shadow);
  transition: all 0.3s ease;
  margin-top: 15px;
  position: relative;
  overflow: hidden;
}

.btn-auth::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: all 0.5s ease;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(67, 97, 238, 0.3);
}

.btn-auth:hover::before {
  left: 100%;
}

.btn-auth:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(67, 97, 238, 0.2);
}

.auth-link {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--label-color);
}

.auth-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.auth-link a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.alert {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex;
  align-items: center;
}

.alert-danger {
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: var(--error);
}

.alert-success {
  background: rgba(6, 214, 160, 0.1);
  border: 1px solid rgba(6, 214, 160, 0.3);
  color: var(--success);
}

.alert::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 10px;
}

.alert-danger::before {
  content: '\f071'; /* exclamation triangle */
}

.alert-success::before {
  content: '\f00c'; /* check */
}

/* Animation for alerts */
@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.alert {
  animation: slideDown 0.3s ease forwards;
}

/* Spinner animation for buttons */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s ease infinite;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .auth-container {
    padding: 30px 20px;
    margin: 0 20px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  .logo img {
    max-width: 120px;
  }
} 