/**
 * GetTicket Dark Theme Auth Styles
 * Matches landing page dark theme
 */

/* Reset body defaults */
html, body {
  margin: 0;
  padding: 0;
  background: #0a0a0f;
}

* {
  box-sizing: border-box;
}

:root {
  --auth-bg: #0a0a0f;
  --auth-bg-secondary: #121212;
  --auth-surface: rgba(255, 255, 255, 0.03);
  --auth-surface-hover: rgba(255, 255, 255, 0.06);
  --auth-border: rgba(255, 255, 255, 0.08);
  --auth-border-hover: rgba(255, 255, 255, 0.15);
  --auth-text: #ffffff;
  --auth-text-secondary: rgba(255, 255, 255, 0.7);
  --auth-text-muted: rgba(255, 255, 255, 0.5);
  --auth-gradient: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
  --auth-glow: rgba(220, 38, 38, 0.3);
  --auth-blur: 20px;
}

/* =============================================
   AUTH WRAPPER - Dark Background
   ============================================= */

.auth-wrapper {
  min-height: 100vh;
  background: var(--auth-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.auth-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(220, 38, 38, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(249, 115, 22, 0.1), transparent);
  pointer-events: none;
}

/* Floating particles effect */
.auth-wrapper::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.1), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.08), transparent),
    radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.1), transparent),
    radial-gradient(2px 2px at 80% 60%, rgba(255,255,255,0.06), transparent);
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

/* =============================================
   AUTH CONTAINER
   ============================================= */

.auth-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.auth-container.auth-wide {
  max-width: 720px;
}

/* =============================================
   AUTH CARD - Glassmorphism
   ============================================= */

.auth-card {
  background: var(--auth-surface);
  backdrop-filter: blur(var(--auth-blur));
  -webkit-backdrop-filter: blur(var(--auth-blur));
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid var(--auth-border);
  transition: all 0.3s ease;
}

.auth-card:hover {
  border-color: var(--auth-border-hover);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(220, 38, 38, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* =============================================
   AUTH HEADER
   ============================================= */

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

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.auth-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-logo a:hover .auth-logo-img {
  opacity: 0.9;
  transform: scale(1.02);
}

.auth-title {
  color: var(--auth-text);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.auth-subtitle {
  color: var(--auth-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =============================================
   AUTH FORM
   ============================================= */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* =============================================
   INPUT GROUPS
   ============================================= */

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-label {
  color: var(--auth-text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
}

.input-field {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-family: inherit;
  font-size: 1rem;
  color: var(--auth-text);
  transition: all 0.2s ease;
  outline: none;
}

.input-field::placeholder {
  color: var(--auth-text-muted);
}

.input-field:hover {
  border-color: var(--auth-border-hover);
  background: rgba(255, 255, 255, 0.05);
}

.input-field:focus {
  border-color: #dc2626;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.input-field.valid {
  border-color: #059669;
}

.input-field.valid:focus {
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.input-field.invalid {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

/* Input Wrapper */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Only add extra padding when toggle button is present */
.password-input-wrapper:has(.toggle-password) .input-field {
  padding-right: 3rem;
}

.toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--auth-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.toggle-password:hover {
  color: var(--auth-text);
}

/* Field Errors */
.field-error {
  color: #ef4444;
  font-size: 0.75rem;
  min-height: 18px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.2s ease;
}

.field-error.show {
  opacity: 1;
  transform: translateY(0);
}

/* Password Strength */
.password-strength-indicator {
  margin-top: 0.5rem;
}

.strength-bar-container {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.strength-bar {
  height: 100%;
  width: 0;
  transition: all 0.3s ease;
  border-radius: 9999px;
}

.strength-bar.weak {
  background: #ef4444;
}

.strength-bar.medium {
  background: #f59e0b;
}

.strength-bar.strong {
  background: #10b981;
}

.strength-text {
  font-size: 0.75rem;
  font-weight: 500;
  min-height: 16px;
}

/* Password Requirements */
.password-requirements {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  padding: 0.75rem;
  margin-top: 0.5rem;
}

.requirement-text {
  color: var(--auth-text-secondary);
  font-weight: 500;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 0.5rem;
}

.requirement-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
}

.requirement-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--auth-text-muted);
  font-size: 0.75rem;
}

.requirement-icon {
  font-size: 10px;
  width: 14px;
  text-align: center;
}

.requirement-icon.fa-times {
  color: #ef4444;
}

.requirement-icon.fa-check {
  color: #10b981;
}

.requirement-list li.valid {
  color: #10b981;
}

/* Checkbox Section */
.checkbox-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--auth-border);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.checkbox-group:last-child {
  margin-bottom: 0;
}

.checkbox-input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #dc2626;
}

.checkbox-label {
  color: var(--auth-text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  cursor: pointer;
}

.terms-link {
  color: #f97316;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.terms-link:hover {
  color: #fb923c;
  text-decoration: underline;
}

/* =============================================
   AUTH BUTTON - Gradient
   ============================================= */

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--auth-gradient);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px var(--auth-glow);
}

.auth-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--auth-glow);
  filter: brightness(1.1);
}

.auth-btn:active:not(:disabled) {
  transform: translateY(0);
}

.auth-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: var(--auth-text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-icon {
  font-size: 0.875rem;
}

/* =============================================
   AUTH FOOTER
   ============================================= */

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

.auth-footer p {
  color: var(--auth-text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.footer-link {
  color: #f97316;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: #fb923c;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links .footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.separator {
  color: var(--auth-border);
}

/* =============================================
   ALERTS
   ============================================= */

.alert {
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  border: 1px solid;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.alert-icon {
  flex-shrink: 0;
  font-size: 1rem;
}

.alert-message {
  flex: 1;
  line-height: 1.6;
}

.alert-actions {
  margin-top: 0.75rem;
}

.alert-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.alert-button:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* =============================================
   INFO NOTICE
   ============================================= */

.info-notice {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #60a5fa;
  font-size: 0.875rem;
}

.notice-icon {
  flex-shrink: 0;
}

/* =============================================
   reCAPTCHA Styling
   ============================================= */

.g-recaptcha {
  display: flex;
  justify-content: center;
  transform: scale(0.95);
  transform-origin: center;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  .auth-wrapper {
    padding: 1rem;
  }

  .auth-card {
    padding: 1.75rem;
    border-radius: 16px;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .requirement-list {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .separator {
    display: none;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem;
  }

  .auth-logo-img {
    height: 38px;
  }

  .auth-title {
    font-size: 1.35rem;
  }

  .checkbox-section {
    padding: 1rem;
  }

  .g-recaptcha {
    transform: scale(0.85);
  }
}
