/* Auth — premium split, beautiful + clear */
.auth-body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background: #0a1524;
  color: #e8edf4;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 100vh;
  width: 100%;
}

.auth-brand {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 10% 15%, rgba(196, 163, 90, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 90%, rgba(26, 58, 92, 0.55), transparent 50%),
    linear-gradient(155deg, #0a1524 0%, #0c1a2e 48%, #163255 100%);
}

.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 35% 40%, #000 15%, transparent 70%);
  pointer-events: none;
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  animation: auth-in 0.7s ease-out both;
}

.auth-mark {
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(196, 163, 90, 0.55);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #e2c575;
  font-size: 1.3rem;
  margin-bottom: 1.75rem;
  background: rgba(196, 163, 90, 0.08);
}

.auth-product {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #f7f9fc;
  margin: 0 0 1rem;
}

.auth-product span {
  color: #e2c575;
}

.auth-tagline {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(232, 237, 244, 0.78);
  max-width: 30rem;
  margin: 0;
}

.auth-rule {
  width: 4.5rem;
  height: 3px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #e2c575, transparent);
  margin: 1.6rem 0 0;
}

.auth-brand-foot {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(232, 237, 244, 0.45);
}

.auth-brand-foot span {
  position: relative;
  padding-inline-start: 0.85rem;
}

.auth-brand-foot span::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 1px;
  background: #e2c575;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.25rem;
  background: linear-gradient(180deg, #ffffff, #f3f6fa);
}

.auth-form-wrap {
  width: 100%;
  max-width: 380px;
  animation: auth-in 0.7s 0.1s ease-out both;
}

.auth-form-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #b8922e;
  margin-bottom: 0.45rem;
}

.auth-form-wrap h1 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0c1a2e;
  margin: 0 0 0.35rem;
}

.auth-form-wrap .lead-muted {
  color: #6b7a8d;
  font-size: 0.92rem;
  margin: 0 0 1.6rem;
  line-height: 1.6;
}

.auth-form-wrap .form-label {
  font-weight: 700;
  font-size: 0.84rem;
  color: #334155;
}

.auth-form-wrap .form-control {
  min-height: 2.9rem;
  border-radius: 8px !important;
  border: 1px solid #cfd8e3 !important;
}

.auth-form-wrap .form-control:focus {
  border-color: #c4a35a !important;
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.18) !important;
}

.auth-form-wrap .btn-auth {
  min-height: 2.95rem;
  border-radius: 8px;
  font-weight: 700;
  background: #0c1a2e;
  border-color: #0c1a2e;
  transition: transform 0.15s, background 0.2s;
}

.auth-form-wrap .btn-auth:hover {
  background: #163255;
  border-color: #163255;
  transform: translateY(-1px);
}

.auth-form-wrap a {
  color: #8a6d2e;
  font-weight: 600;
}

.auth-brand-frame {
  position: absolute;
  inset: 1.25rem;
  border: 1px solid rgba(226, 197, 117, 0.28);
  pointer-events: none;
  z-index: 1;
}

.auth-brand-frame::before,
.auth-brand-frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #e2c575;
  border-style: solid;
}

.auth-brand-frame::before {
  top: -1px;
  right: -1px;
  border-width: 2px 2px 0 0;
}

.auth-brand-frame::after {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 2px 2px;
}

.auth-brand-frame .corner-tr,
.auth-brand-frame .corner-bl {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #e2c575;
  border-style: solid;
}

.auth-brand-frame .corner-tr {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.auth-brand-frame .corner-bl {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

@keyframes auth-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-brand-inner,
  .auth-form-wrap {
    animation: none;
  }
}

@media (max-width: 991px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    min-height: 34vh;
    padding: 2rem 1.5rem 1.5rem;
    justify-content: flex-end;
  }

  .auth-brand-frame {
    inset: 0.85rem;
  }

  .auth-product {
    font-size: 2.1rem;
  }

  .auth-panel {
    padding: 1.75rem 1.35rem 2.5rem;
    align-items: flex-start;
  }
}
