/* ===== Auth Pages ===== */

.auth-body {
  background: #f0f2f8;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-container {
  display: flex;
  width: 100%;
  max-width: 960px;
  min-height: 600px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Left branding panel */
.auth-brand {
  flex: 1;
  background: linear-gradient(135deg, #1e2a3a 0%, #15202e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15), transparent);
  top: -80px;
  right: -80px;
  border-radius: 50%;
}

.auth-brand::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.12), transparent);
  bottom: -60px;
  left: -40px;
  border-radius: 50%;
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.auth-brand-inner h1 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-top: 16px;
}

.auth-brand-inner > p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 280px;
}

.auth-brand-stats {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  justify-content: center;
}

.auth-brand-stats div {
  text-align: center;
}

.auth-brand-stats strong {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.auth-brand-stats span {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  display: block;
}

/* Right form panel */
.auth-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 360px;
}

.auth-form-wrapper h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
}

.auth-subtitle {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 6px;
  margin-bottom: 24px;
}

/* Alert */
.auth-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-alert-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Discord button */
.btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: #5865F2;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

.btn-discord:active {
  transform: translateY(0);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-divider span {
  padding: 0 14px;
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

/* Form */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: #1e293b;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input::placeholder {
  color: #cbd5e1;
}

.form-group input:focus {
  border-color: #4361ee;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
}

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #1e2a3a, #15202e);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  font-family: 'DM Sans', sans-serif;
  margin-top: 4px;
}

.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Footer links */
.auth-footer {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  margin-top: 20px;
}

.auth-footer a {
  color: #4361ee;
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Demo hint */
.auth-demo-hint {
  text-align: center;
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 14px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 8px;
}

.auth-demo-hint strong {
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
    max-width: 440px;
  }
  .auth-brand {
    padding: 32px;
    min-height: auto;
  }
  .auth-brand-inner > p {
    display: none;
  }
  .auth-form-side {
    padding: 32px;
  }
}