/* auth.css - Styles for authentication screens */

/* Container that centers the auth card */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background: var(--bg-primary);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
}

/* Card that holds the form */
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
  animation: fadeIn 0.6s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header inside the card */
.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-logo {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Form elements */
.auth-form h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-primary);
}
.auth-form .form-group {
  margin-bottom: 1.25rem;
}
.auth-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-secondary);
}
.auth-form input, .auth-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.auth-form input:focus, .auth-form select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* Buttons */
.auth-form .btn {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
}
.auth-form .btn-primary {
  background: #000000;
  color: #ffffff;
  border: none;
}

.auth-form .btn-primary:hover {
  background: #222222;
}
.auth-form .btn-success {
  background: #10b981; /* success */
  color: #fff;
}
.auth-form .btn-success:hover {
  background: #059669;
}

/* Links */
.auth-links {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
}
.auth-links a {
  color: var(--accent-primary);
  text-decoration: none;
  margin: 0 4px;
}
.auth-links a:hover {
  text-decoration: underline;
}

/* Alert messages */
.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.auth-alert.alert-success {
  background: rgba(16,185,129,0.1);
  color: var(--success);
}
.auth-alert.alert-error {
  background: rgba(239,68,68,0.1);
  color: var(--danger);
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem;
  }
  .auth-form h3 {
    font-size: 1.2rem;
  }
}
