/* ============================================
   AUTH PAGE STYLES (Static Background Layout)
   ============================================ */

.auth-body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
  background: #0A0F1E;
}

.auth-bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-color: #0A0F1E;
}

.auth-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 30, 0.85);
  z-index: -1;
}

.auth-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-2xl);
  position: relative;
  z-index: 1;
}

.auth-card h2, .auth-card h3, .auth-card label, .auth-card .auth-tab {
  color: #F8FAFC;
}

.auth-tab:not(.active) {
  color: rgba(255, 255, 255, 0.6);
}

.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.auth-form.active {
  display: flex;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.input {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  color: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font-sans);
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input:focus {
  outline: none;
  border-color: #818CF8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #6366F1;
  cursor: pointer;
}

.form-check label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.form-check a {
  color: #818CF8;
  text-decoration: none;
}

.form-check a:hover {
  text-decoration: underline;
}

.btn-primary {
  width: 100%;
  background: #6366F1;
  color: white;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #4F46E5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.w-full { width: 100%; }

.form-footer {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.link-muted {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.link-muted:hover {
  color: white;
}

.recovery-header {
  text-align: center;
  margin-bottom: 24px;
}

.recovery-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.recovery-warning {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.username-check {
  font-size: 11px;
  margin-top: 4px;
  min-height: 14px;
  font-weight: 500;
  color: #34D399;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: #1E293B;
  color: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: var(--shadow-2xl);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-lg { max-width: 700px; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.modal-subtitle {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: 32px;
}

.terms-content p { margin-bottom: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.8); }
.terms-content h3 { margin-top: 24px; margin-bottom: 12px; font-size: 18px; color: white; }

@media (max-width: 768px) {
  .auth-card {
    padding: 24px;
  }
  .auth-wrapper {
    padding: 20px;
  }
}
