body.auth-page {
  background: #eef4ff;
  min-height: 100vh;
}

body.auth-page .preloader {
  pointer-events: none;
}

body.auth-page .header-bg {
  display: none;
}

body.auth-page .appbar-area {
  background: #0a1628;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 45px;
}

body.auth-page .appbar-page-title h3,
body.auth-page .appbar-action-item a {
  color: #ffffff;
  opacity: 1;
}

body.auth-page .body-content {
  margin-top: 45px;
  padding-top: 0;
  padding-bottom: 42px;
  min-height: calc(100vh - 45px);
  border-radius: 0;
  background:
    linear-gradient(115deg, rgba(232, 197, 71, 0.1) 0, rgba(232, 197, 71, 0) 30%),
    linear-gradient(180deg, #081320 0, #0f1d32 286px, #eef4ff 286px, #f4f7fc 100%);
  position: relative;
  overflow: hidden;
}

body.auth-page .body-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 300px;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 72px),
    linear-gradient(135deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.055) 50%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.8;
}

body.auth-page .container {
  max-width: 500px;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  z-index: 1;
}

body.auth-page.auth-register .container {
  max-width: 720px;
}

body.auth-page .hero-section {
  padding: 34px 0 62px;
  text-align: center;
  position: relative;
}

body.auth-page .hero-logo {
  width: 66px;
  height: 66px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #c9a227 0%, #e8c547 100%);
  box-shadow: 0 16px 40px rgba(201, 162, 39, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

body.auth-page .hero-logo::after {
  content: "";
  position: absolute;
  inset: -45%;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.32) 50%, transparent 70%);
  transform: translateX(-55%) rotate(8deg);
  animation: authLogoSheen 4s ease-in-out infinite;
}

body.auth-page .hero-logo img {
  width: 42px;
  height: 42px;
  position: relative;
  z-index: 1;
}

body.auth-page .hero-title {
  color: #ffffff;
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

body.auth-page .hero-subtitle {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

body.auth-page .hero-security-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 12px;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.auth-page .main-card {
  margin: -36px auto 0;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18), 0 2px 0 rgba(255, 255, 255, 0.65) inset;
  animation: authCardRise 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

body.auth-page .bank-info {
  background:
    linear-gradient(135deg, rgba(232, 197, 71, 0.08) 0, rgba(232, 197, 71, 0) 32%),
    linear-gradient(135deg, #0d1a2d 0%, #152742 100%);
  padding: 30px;
  position: relative;
  overflow: hidden;
}

body.auth-page .bank-info::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 36%);
}

body.auth-page .bank-info h4 {
  color: #ffffff;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

body.auth-page .bank-info h4 i,
body.auth-page .bank-info p strong,
body.auth-page .trust-badge i {
  color: #e8c547;
}

body.auth-page .bank-info p {
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 0;
  line-height: 1.72;
  font-size: 15px;
  position: relative;
  z-index: 1;
}

body.auth-page .trust-badges {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  z-index: 1;
  scrollbar-width: none;
}

body.auth-page .trust-badges::-webkit-scrollbar {
  display: none;
}

body.auth-page .trust-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

body.auth-page .page-header {
  padding: 30px 34px 0;
  margin-bottom: 0;
}

body.auth-page .page-header-title h3 {
  color: #0f172a;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

body.auth-page .authentication-form {
  padding: 24px 34px 34px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.auth-page .form-group {
  margin-bottom: 18px;
}

body.auth-page .form-group label,
body.auth-page .form-check-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

body.auth-page .form-check-label {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}

body.auth-page .input-group {
  align-items: stretch;
  border-radius: 12px;
  border: 2px solid #f1f5f9;
  background: #f8fafc;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.auth-page .input-group:focus-within {
  border-color: #c9a227;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
}

body.auth-page .input-group-text {
  border: 0;
  background: transparent;
  color: #94a3b8;
  padding: 13px 15px;
}

body.auth-page .input-group:focus-within .input-group-text {
  color: #c9a227;
}

body.auth-page .form-control,
body.auth-page .form-select {
  min-height: 50px;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-weight: 600;
  box-shadow: none;
}

body.auth-page .form-control::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

body.auth-page .input-group .form-control:first-child,
body.auth-page .input-group .form-select:first-child {
  padding-left: 16px;
}

body.auth-page .input-group .form-control:not(:first-child),
body.auth-page .input-group .form-select:not(:first-child) {
  padding-left: 0;
}

body.auth-page .authentication-account-access {
  margin-top: 0;
}

body.auth-page .input-checkbox label {
  color: #64748b;
}

body.auth-page .authentication-link a,
body.auth-page .form-desc a,
body.auth-page .form-check-label a {
  color: #1e3560;
  font-weight: 700;
  text-decoration: none;
}

body.auth-page .authentication-link a:hover,
body.auth-page .form-desc a:hover,
body.auth-page .form-check-label a:hover {
  color: #c9a227;
}

body.auth-page .main-btn {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f1d32 0%, #1e3560 100%);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 8px 20px rgba(15, 29, 50, 0.22);
}

body.auth-page .main-btn:hover {
  background: linear-gradient(135deg, #14243d 0%, #2a4a7c 100%);
  box-shadow: 0 10px 24px rgba(15, 29, 50, 0.28);
}

body.auth-page.auth-register .hero-section {
  padding-top: 38px;
  padding-bottom: 70px;
}

body.auth-page.auth-register .main-card {
  max-width: 850px;
}

body.auth-page.auth-register .bank-info {
  padding: 34px 36px;
}

body.auth-page.auth-register .page-header {
  padding-top: 34px;
}

body.auth-page .form-desc {
  color: #64748b;
  margin-top: 22px;
  font-weight: 600;
}

body.auth-page .auth-divider {
  margin: 22px 0;
}

body.auth-page .quick-login-btn {
  border-radius: 12px;
}

body.auth-page .alert {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 50px;
  padding: 14px 16px !important;
  margin-bottom: 18px !important;
  border: 1px solid transparent;
  border-left-width: 4px;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left !important;
}

body.auth-page .alert i,
body.auth-page .alert .bi {
  flex: 0 0 auto;
  font-size: 18px;
}

body.auth-page .alert > div,
body.auth-page .alert .msg {
  flex: 1 1 auto;
}

body.auth-page .alert-success {
  color: #0f6848;
  background: linear-gradient(135deg, #ecfdf5 0%, #f8fffb 100%);
  border-color: #9fe5c6;
  border-left-color: #10b981;
}

body.auth-page .alert-success i,
body.auth-page .alert-success .bi {
  color: #10b981;
}

body.auth-page .alert-danger {
  color: #7f1d1d;
  background: linear-gradient(135deg, #fff1f2 0%, #fff8f8 100%);
  border-color: #fecdd3;
  border-left-color: #ef4444;
}

body.auth-page .alert-danger i,
body.auth-page .alert-danger .bi {
  color: #991b1b;
}

body.auth-page .alert-warning {
  color: #7c4a03;
  background: linear-gradient(135deg, #fffbeb 0%, #fffdf5 100%);
  border-color: #fde68a;
  border-left-color: #f59e0b;
}

body.auth-page .alert-warning i,
body.auth-page .alert-warning .bi {
  color: #d97706;
}

body.auth-page .alert-info {
  color: #164e63;
  background: linear-gradient(135deg, #ecfeff 0%, #f6fdff 100%);
  border-color: #a5f3fc;
  border-left-color: #06b6d4;
}

body.auth-page .alert-info i,
body.auth-page .alert-info .bi {
  color: #0891b2;
}

.signup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 0;
}

.signup-grid .form-group.full-width,
.auth-terms,
.auth-submit,
.auth-alert {
  grid-column: 1 / -1;
}

.auth-terms {
  margin-top: 2px;
  margin-bottom: 20px;
}

.auth-terms .form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.auth-terms .form-check-input {
  margin: 0;
  width: 18px;
  height: 18px;
  border-color: #cbd5e1;
  accent-color: #c9a227;
}

body.auth-page .modal-backdrop.show {
  opacity: 0.72;
}

body.auth-page .auth-reset-modal .modal-dialog {
  max-width: 430px;
}

body.auth-page .auth-reset-modal .modal-content {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 34px 80px rgba(6, 13, 26, 0.36);
}

body.auth-page .auth-reset-modal .modal-header {
  align-items: flex-start;
  padding: 28px 30px 0;
  border: 0;
}

body.auth-page .auth-reset-modal .modal-title-wrap {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

body.auth-page .auth-reset-modal .modal-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #0f1d32;
  background: linear-gradient(135deg, #c9a227 0%, #e8c547 100%);
  box-shadow: 0 12px 30px rgba(201, 162, 39, 0.25);
}

body.auth-page .auth-reset-modal .modal-title {
  color: #0f172a;
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 5px;
}

body.auth-page .auth-reset-modal .modal-subtitle {
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

body.auth-page .auth-reset-modal .btn-close {
  margin-top: 4px;
  opacity: 0.65;
}

body.auth-page .auth-reset-modal .modal-body {
  padding: 26px 30px 30px;
}

body.auth-page .reset-security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 22px;
  padding: 13px 14px;
  border-radius: 14px;
  color: #516174;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  font-size: 12px;
  line-height: 1.45;
}

body.auth-page .reset-security-note i {
  color: #c9a227;
  font-size: 15px;
  margin-top: 1px;
}

body.auth-page .auth-reset-modal .input-group {
  border-radius: 14px;
}

body.auth-page .auth-reset-modal .form-control {
  text-align: left;
}

body.auth-page .reset-actions {
  display: grid;
  gap: 10px;
}

body.auth-page .reset-actions .btn-light {
  min-height: 48px;
  border-radius: 12px;
  color: #1e3560;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  font-weight: 700;
}

@keyframes authLogoSheen {
  0%, 55% {
    transform: translateX(-55%) rotate(8deg);
  }
  100% {
    transform: translateX(55%) rotate(8deg);
  }
}

@keyframes authCardRise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  body.auth-page.auth-register .container,
  body.auth-page .container {
    max-width: 500px;
  }

  .signup-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  body.auth-page .body-content {
    background:
      linear-gradient(115deg, rgba(232, 197, 71, 0.1) 0, rgba(232, 197, 71, 0) 36%),
      linear-gradient(180deg, #081320 0, #0f1d32 300px, #eef4ff 300px, #f4f7fc 100%);
  }

  body.auth-page .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.auth-page .hero-section {
    padding-top: 24px;
    padding-bottom: 50px;
  }

  body.auth-page .hero-logo {
    width: 58px;
    height: 58px;
  }

  body.auth-page .hero-logo img {
    width: 36px;
    height: 36px;
  }

  body.auth-page .hero-title {
    font-size: 24px;
  }

  body.auth-page .main-card {
    margin-top: -28px;
    border-radius: 20px;
  }

  body.auth-page .bank-info {
    padding: 24px 20px;
  }

  body.auth-page .page-header {
    padding: 26px 22px 0;
  }

  body.auth-page .authentication-form {
    padding: 22px;
  }

  body.auth-page .auth-reset-modal .modal-dialog {
    margin-left: 16px;
    margin-right: 16px;
  }

  body.auth-page .auth-reset-modal .modal-header,
  body.auth-page .auth-reset-modal .modal-body {
    padding-left: 22px;
    padding-right: 22px;
  }
}
