:root{
  --navy-dark: #rgb(1 24 68);
  --navy-mid: #rgb(1 24 68);
  --orange: #F97316;
  --orange-dark: #EA580C;
  --green: #22C55E;
  --blue: #2563EB;
  --bg-light: #F8FAFC;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: #1E3A8A;
}

.auth-wrapper {
  display: flex;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

/* LEFT PANEL */
.auth-left {
  flex: 1 1 58%;
  background: #1E3A8A;
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 0;
}

.auth-left-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

.auth-left-panel-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  pointer-events: none;
}

/* RIGHT PANEL */
.auth-right {
  flex: 1 1 42%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
  position: relative;
  background: var(--bg-light);
  overflow: hidden;
  min-height: 0;
}

.auth-right-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 95% 8%, rgba(249,115,22,.07) 0%, transparent 100px),
    radial-gradient(circle at 5% 92%, rgba(30,58,138,.05) 0%, transparent 90px);
}

.auth-right-decor::before,
.auth-right-decor::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: .3;
}

.auth-right-decor::before {
  width: 8px; height: 8px;
  top: 48px; right: 64px;
  background: var(--orange);
}

.auth-right-decor::after {
  width: 6px; height: 6px;
  bottom: 72px; left: 48px;
  background: var(--navy-dark);
}

.need-help {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-dark);
  text-decoration: none;
  z-index: 2;
}

.need-help i {
  font-size: 13px;
  color: var(--navy-dark);
  margin-right: 3px;
  vertical-align: -1px;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0,26,77,.07);
  padding: 28px 32px 24px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFF7ED;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.card-icon i {
  font-size: 18px;
  line-height: 1;
}

.auth-form h2 {
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 2px;
  font-size: 1.35rem;
}

.auth-subtitle {
  color: #8a93a6;
  font-size: 12.5px;
  margin-bottom: 18px;
}

.auth-form { text-align: left; }

.auth-form .form-label {
  font-weight: 600;
  font-size: 12.5px;
  color: #1f2a44;
  margin-bottom: 5px;
}

.auth-form .mb-3 { margin-bottom: .85rem !important; }
.auth-form .mb-2 { margin-bottom: .65rem !important; }

.auth-form .input-group {
  border: 1px solid #dde3ee;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s, border-color .2s;
}

.auth-form .input-group:focus-within {
  border-color: rgba(249,115,22,.45);
  box-shadow: 0 0 0 2px rgba(249,115,22,.1);
}

.auth-form .input-group-text {
  background: #fff;
  border: none;
  color: #9aa5b8;
  padding: 0 10px;
  font-size: 13px;
}

.auth-form .input-group-text i {
  font-size: 14px;
  line-height: 1;
}

.auth-form button.input-group-text {
  cursor: pointer;
}

.auth-form .form-control {
  border: none;
  box-shadow: none;
  padding: 9px 10px;
  font-size: 13px;
  min-height: unset;
}

.auth-form .form-control::placeholder { color: #b0b8c9; }
.auth-form .form-control:focus { box-shadow: none; }

.auth-form .form-check-input {
  width: 14px;
  height: 14px;
  margin-top: .15em;
}

.auth-form .form-check-input:checked {
  background-color: var(--orange);
  border-color: var(--orange);
}

.auth-form .form-check-label { font-size: 12px; color: #5c6478; }

.forgot-link {
  font-size: 12px;
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

.forgot-link:hover { color: var(--orange-dark); }

.btn-orange {
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  transition: opacity .2s;
}

.btn-orange i {
  font-size: 13px;
  vertical-align: -1px;
}

.btn-orange:hover {
  opacity: .95;
  color: #fff;
}

.secure-note {
  max-width: 380px;
  margin-top: 16px;
  font-size: 11px;
  color: #6b7280;
  text-align: center;
  display: flex;
  gap: 5px;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  z-index: 1;
  line-height: 1.45;
  flex-shrink: 0;
}

.secure-note > i {
  font-size: 13px;
  margin-top: 1px;
  flex-shrink: 0;
}

.auth-form .alert {
  font-size: 12px;
  padding: 8px 12px;
  margin-bottom: 12px !important;
}

/* Short screens */
@media (max-height: 720px) {
  .auth-card { padding: 22px 26px 20px; }
  .auth-subtitle { margin-bottom: 14px; }
  .secure-note { margin-top: 12px; }
}

/* Tablet / mobile — allow scroll */
@media (max-width: 991px) {
  html, body { overflow: auto; height: auto; }

  .auth-wrapper {
    flex-direction: column;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .auth-left, .auth-right {
    flex: none;
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .auth-left-inner {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 220px;
  }

  .auth-left-panel-img {
    width: 100%;
    height: auto;
    min-height: 220px;
    max-height: 42vh;
    object-fit: cover;
  }
}

@media (max-width: 575px) {
  .auth-card { padding: 22px 20px 20px; }
  .need-help { right: 16px; top: 16px; }
}
