/**
 * Shared styles for AppGiniLTE auth pages (login, register, OTP, password reset, 2FA).
 * Modern card-only layout: centered card on gradient background, no split screen.
 */
/* ========== Page wrap: full-height centered card ========== */
.auth-page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.auth-page-wrap .login-box,
.auth-page-wrap .register-box {
  margin: 0 auto;
  width: 100% !important;
  max-width: 540px;
  min-width: 380px;
}
@media (max-width: 480px) {
  .auth-page-wrap .login-box,
  .auth-page-wrap .register-box {
    min-width: 0;
    max-width: 100%;
  }
  .auth-page-wrap { padding: 1.25rem 1rem; }
  .auth-card-modern .card-body { padding: 1.5rem 1.25rem; }
  .auth-card-modern .card-header { padding: 1.5rem 1.25rem; }
}
.auth-page-wrap.has-bg-image {
  background-size: cover;
  background-position: center;
}
.auth-card-modern {
  width: 100%;
  max-width: 100%;
  border: none;
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.auth-card-modern:hover {
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.1), 0 6px 16px rgba(0, 0, 0, 0.05);
}
.auth-card-modern .card-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.75rem 2rem 1.5rem;
  background: #fff;
}
.auth-card-modern .card-header .h4 {
  font-weight: 700;
  font-size: 1.5rem;
  color: #1a1d21;
  margin: 0;
}
.auth-card-modern .card-header .h4 a {
  color: inherit;
  text-decoration: none;
}
.auth-card-modern .card-body {
  padding: 1.75rem 2rem 2rem;
  background: #fff;
}
.auth-card-modern .login-box-msg,
.auth-card-modern .auth-subtitle {
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}
/* Form inputs */
.auth-card-modern .input-group {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid #dee2e6;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-card-modern .input-group:focus-within {
  border-color: var(--primary, #007bff);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}
.auth-card-modern .form-control {
  border: none;
  padding: 0.85rem 1.15rem;
  font-size: 1rem;
  min-height: 52px;
}
.auth-card-modern .form-control:focus {
  box-shadow: none;
  outline: none;
}
.auth-card-modern .input-group-text {
  border: none;
  background: #f8f9fa;
  color: #6c757d;
  padding: 0 1.15rem;
}
.auth-card-modern .input-group-append .input-group-text {
  border-left: 1px solid #eee;
}
.auth-card-modern .input-group-prepend .input-group-text {
  border-right: 1px solid #eee;
}
.auth-card-modern .form-group {
  margin-bottom: 1.25rem;
}
.auth-card-modern .form-group label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
.auth-card-modern select.form-control {
  border-radius: 12px;
  border: 1px solid #dee2e6;
  padding: 0.85rem 1.15rem;
  min-height: 52px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-card-modern select.form-control:focus {
  border-color: var(--primary, #007bff);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
  outline: none;
}
.auth-card-modern .form-text.text-muted {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #6c757d;
}
/* Buttons */
.auth-card-modern .btn-block {
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  min-height: 50px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.auth-card-modern .btn-block:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.auth-card-modern .btn-block:active {
  transform: translateY(0);
}
/* Links */
.auth-card-modern .card-body a:not(.btn) {
  color: var(--primary, #007bff);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.auth-card-modern .card-body a:not(.btn):hover {
  color: var(--primary, #0056b3);
  text-decoration: underline;
}
.auth-card-modern .card-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.25rem 2rem;
  background: #f8f9fa;
}
/* Alerts above card */
.auth-page-wrap .alert {
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  margin: 0 auto 1.25rem;
}
/* OTP / 2FA specific */
.auth-otp-card {
  width: 100%;
  max-width: 480px;
  border: none;
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
  padding: 2.25rem 2rem;
  background: #fff;
}
.auth-otp-card .auth-otp-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1d21;
  margin-bottom: 0.5rem;
}
.auth-otp-card .auth-otp-sub {
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}
.auth-otp-card .inputs input {
  width: 52px;
  height: 56px;
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  margin: 0 5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-otp-card .inputs input:focus {
  border-color: var(--primary, #007bff);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
  outline: none;
}
.auth-otp-card .btn-validate {
  border-radius: 12px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 1.75rem;
}
.auth-otp-card .auth-otp-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eee;
  font-size: 0.95rem;
  color: #6c757d;
}
.auth-otp-card .auth-otp-footer a {
  color: var(--primary, #007bff);
  font-weight: 500;
  text-decoration: none;
}
.auth-otp-card .auth-otp-footer a:hover {
  text-decoration: underline;
}
/* Thank you page */
.auth-thankyou-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  text-align: center;
}
.auth-thankyou-card {
  width: 100%;
  max-width: 480px;
  padding: 2.75rem 2.5rem;
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
  background: #fff;
}
.auth-thankyou-card h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 1.25rem; }
.auth-thankyou-card .help-block { color: #6c757d; font-size: 1rem; line-height: 1.5; }
/* 2FA panel (inside main layout) */
.panel-2fa-modern {
  border: none;
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.panel-2fa-modern .panel-heading {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 1.5rem 1.75rem;
}
.panel-2fa-modern .panel-body {
  padding: 1.75rem 1.75rem;
}
.panel-2fa-modern .form-control {
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  min-height: 52px;
  border: 1px solid #dee2e6;
}
.panel-2fa-modern .form-control:focus {
  border-color: var(--primary, #007bff);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}
/* Hide number spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}
