/* ============================================================
   Login / Register  —  Simple centered card
   ============================================================ */

/* Full-page gradient background */
body {
  background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 100%) !important;
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  margin: 0 !important;
  padding: 0 !important;
}

/* Strip away the main.css page wrapper padding/positioning */
.page {
  position: static !important;
  top: auto !important;
  left: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
}

.page .container-fluid {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
}

/* ---- Card ---- */
.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  margin: 30px auto;
}

.auth-card-wide {
  max-width: 620px;
}

/* Logo */
.auth-card .auth-logo img {
  height: 46px;
  width: auto;
  display: block;
  margin-bottom: 24px;
}

/* Headings */
.auth-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}

.auth-card .auth-sub {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 0 0 24px;
}

/* Field */
.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  margin-bottom: 6px;
}

.auth-field .form-control {
  height: 44px;
  font-size: 14px;
  color: #1e293b;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 13px;
  width: 100%;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field .form-control:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
  outline: none;
  background: #fff;
}

.auth-field .form-control::placeholder {
  color: #c8d0dc;
}

/* Section label (register) */
.auth-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin: 4px 0 12px;
}

/* Two-column grid (register) */
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

/* Divider */
.auth-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 20px 0;
}

/* Button */
.auth-btn {
  display: block;
  width: 100%;
  height: 46px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border: none;
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(79,70,229,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 6px;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,0.5);
  color: #fff;
}

/* Footer link */
.auth-footer-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13.5px;
  color: #64748b;
}

.auth-footer-link a {
  color: #4f46e5;
  font-weight: 700;
  text-decoration: none;
}

.auth-footer-link a:hover { text-decoration: underline; }

/* Alerts */
.alert {
  border-radius: 8px;
  font-size: 13.5px;
  padding: 11px 14px;
  margin-bottom: 16px;
  border: none;
}
.alert-danger, .alert-error { background:#fef2f2; color:#b91c1c; border-left:4px solid #ef4444; }
.alert-success { background:#f0fdf4; color:#15803d; border-left:4px solid #22c55e; }
.alert-info    { background:#eff6ff; color:#1d4ed8; border-left:4px solid #3b82f6; }
.alert-warning { background:#fffbeb; color:#92400e; border-left:4px solid #f59e0b; }

@media (max-width: 600px) {
  .auth-card { padding: 30px 22px; margin: 16px; }
  .auth-grid { grid-template-columns: 1fr; }
}
