/* ============================================
   AUTH PAGES - Standalone (Login, Register, etc.)
   Loaded by layouts/auth.html.erb
   ============================================ */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #050507;
  color: #f0f0f5;
  line-height: 1.6;
  min-height: 100vh;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.auth-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(192, 0, 255, 0.2) 0%, rgba(192, 0, 255, 0.05) 50%, transparent 80%);
}

.auth-gradient {
  display: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: rgba(28, 28, 31, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

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

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #f0f0f5;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.auth-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #c000ff 0%, #d64fff 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(192, 0, 255, 0.4);
}

.auth-logo .logo-icon-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(192, 0, 255, 0.5));
}

.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f0f0f5;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.auth-header p {
  color: #8888a0;
  font-size: 0.95rem;
  margin: 0;
}

.auth-form .form-group {
  margin-bottom: 1.25rem;
}

.auth-form .form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #f0f0f5;
  margin-bottom: 0.5rem;
}

.auth-form .form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(5, 5, 7, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #f0f0f5;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.auth-form .form-control::placeholder {
  color: #55556a;
}

.auth-form .form-control:focus {
  outline: none;
  border-color: #c000ff;
  box-shadow: 0 0 0 3px rgba(192, 0, 255, 0.15);
  background: rgba(5, 5, 7, 0.8);
}

.auth-form .form-hint {
  display: block;
  font-size: 0.8rem;
  color: #55556a;
  margin-top: 0.4rem;
}

.auth-form .form-hint-link {
  font-size: 0.8rem;
  color: #c000ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-form .form-hint-link:hover {
  color: #d64fff;
}

.auth-form .form-check-custom {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  color: #8888a0;
  font-size: 0.9rem;
}

.auth-form .form-check-custom .form-check-input {
  width: 18px;
  height: 18px;
  margin: 0;
  background: rgba(5, 5, 7, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
}

.auth-form .form-check-custom .form-check-input:checked {
  background-color: #c000ff;
  border-color: #c000ff;
}

.auth-form .btn-block {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 10px;
  background: linear-gradient(135deg, #c000ff 0%, #d64fff 100%);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(192, 0, 255, 0.3);
}

.auth-form .btn-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(192, 0, 255, 0.4);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer p {
  color: #8888a0;
  font-size: 0.9rem;
  margin: 0;
}

.auth-footer a {
  color: #c000ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-footer a:hover {
  color: #d64fff;
}

.auth-terms {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-terms p {
  color: #55556a;
  font-size: 0.8rem;
  margin: 0;
}

.auth-terms a {
  color: #8888a0;
  text-decoration: none;
}

.auth-terms a:hover {
  color: #c000ff;
}

/* Alerts */
.auth-alert {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.auth-alert-error {
  background: rgba(255, 51, 102, 0.15);
  border: 1px solid rgba(255, 51, 102, 0.3);
  color: #ff3366;
}

.auth-alert-success {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: #00ff88;
}

/* Inline notice inside the auth card (e.g. sign-ups temporarily closed) */
.auth-notice {
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #ffc107;
}

/* Utilities */
.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-center {
  align-items: center;
}