/* Authentication Pages Styles */

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

:root {
  /* Modern Blue/Purple Design System */
  --primary: #0EA5E9;
  --primary-dark: #0284C7;
  --primary-light: #38BDF8;
  --secondary: #8B5CF6;
  --accent: #F59E0B;
  --success: #10B981;
  --danger: #EF4444;
  
  /* Dark Theme */
  --dark-bg: #0F172A;
  --dark-card: #1E293B;
  --dark-border: #334155;
  
  /* Text */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0EA5E9 0%, #8B5CF6 100%);
  --gradient-secondary: linear-gradient(135deg, #8B5CF6 0%, #0EA5E9 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-card) 100%);
  color: var(--text-secondary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 3rem;
  border: 1px solid var(--dark-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.logo-icon-wrapper {
  width: 40px;
  height: 40px;
  background: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #0EA5E9,
              0 0 10px rgba(14, 165, 233, 0.5),
              0 0 20px rgba(14, 165, 233, 0.3);
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% {
    box-shadow: 0 0 0 2px #0EA5E9,
                0 0 10px rgba(14, 165, 233, 0.5),
                0 0 20px rgba(14, 165, 233, 0.3);
  }
  50% {
    box-shadow: 0 0 0 2px #0EA5E9,
                0 0 15px rgba(14, 165, 233, 0.7),
                0 0 30px rgba(14, 165, 233, 0.5);
  }
}

.logo-icon {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF1CF7 0%, #00F0FF 50%, #B026FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Arial Black', sans-serif;
  filter: drop-shadow(0 0 8px #FF1CF7) drop-shadow(0 0 16px #00F0FF) drop-shadow(0 0 24px #B026FF);
}

.auth-header h1 {
  color: var(--text-primary);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  opacity: 0.8;
}

.auth-form {
  margin-bottom: 2rem;
}

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

.form-group label {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-group small {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0.8;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 0.875rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.error-message.hidden {
  display: none;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--gradient-primary);
  color: var(--text-primary);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.loader {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(248, 250, 252, 0.3);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader.hidden,
#submitText.hidden {
  display: none;
}

.terms {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.8;
  line-height: 1.5;
}

.terms a {
  color: var(--primary-light);
  text-decoration: none;
}

.terms a:hover {
  text-decoration: underline;
}

.auth-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--dark-border);
}

.auth-footer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.auth-footer a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.75rem;
  }
  
  .auth-card {
    padding: 2rem 1.25rem;
  }
  
  .auth-header h1 {
    font-size: 1.5rem;
  }
  
  .auth-header p {
    font-size: 0.9rem;
  }
  
  .btn-submit {
    min-height: 48px;
    font-size: 1rem;
  }
  
  .form-group input {
    min-height: 44px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}
