:root {
  --kabla-orange: #ff6808;
  --kabla-orange-dark: #e85a00;
  --kabla-navy: #0d3158;
  --kabla-navy-soft: #29496b;
  --kabla-muted: #8c9bad;
  --kabla-border: #d6dfe9;
  --kabla-surface: rgba(255, 255, 255, 0.94);
}

* { box-sizing: border-box; }

.auth-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  color: var(--kabla-navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 42% 15%, rgba(239, 246, 252, .82), transparent 33%),
    radial-gradient(circle at 78% 84%, rgba(244, 248, 251, .76), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fbfdff 53%, #ffffff 100%);
}

.auth-shell::before,
.auth-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(255, 104, 8, .23);
  border-radius: 50%;
}

.auth-shell::before {
  width: 940px;
  height: 940px;
  left: -300px;
  top: -370px;
}

.auth-shell::after {
  width: 760px;
  height: 760px;
  right: -520px;
  bottom: -450px;
}

.auth-corner-slice {
  position: absolute;
  right: -12px;
  top: 31%;
  width: 154px;
  height: 154px;
  opacity: .58;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, rgba(255, 104, 8, .04), rgba(255, 104, 8, .12));
}

.auth-layout {
  min-height: 100vh;
  width: min(1530px, 100%);
  margin: 0 auto;
  padding: 34px 68px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(430px, .92fr);
  align-items: center;
  gap: 68px;
  position: relative;
  z-index: 1;
}

.auth-hero {
  min-height: 770px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, .84fr) minmax(330px, .96fr);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 4;
  align-self: stretch;
  padding-top: 32px;
}

.brand-logo {
  width: 178px;
  height: auto;
  display: block;
}

.brand-short-rule {
  width: 40px;
  height: 2px;
  margin-top: 21px;
  background: var(--kabla-orange);
}

.hero-eyebrow {
  margin-top: 28px;
  color: #293441;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .31em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  color: #082f59;
  font-size: clamp(46px, 4.05vw, 68px);
  font-weight: 800;
  letter-spacing: -.038em;
  line-height: .98;
}

.hero-subtitle {
  margin-top: 14px;
  color: #29496b;
  font-size: clamp(19px, 1.62vw, 27px);
  font-weight: 400;
  line-height: 1.26;
}

.orange-rule {
  width: 40px;
  height: 3px;
  margin: 24px 0;
  border-radius: 999px;
  background: var(--kabla-orange);
}

.hero-message {
  margin: 0 0 42px;
  color: #173e69;
  font-size: clamp(20px, 1.48vw, 26px);
  line-height: 1.22;
}

.feature-list {
  display: grid;
  gap: 20px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.feature-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 104, 8, .10);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 9px 25px rgba(23, 61, 104, .08), inset 0 0 0 7px rgba(255, 104, 8, .035);
}

.feature-icon img {
  width: 26px;
  height: 26px;
  filter: invert(45%) sepia(99%) saturate(2804%) hue-rotate(359deg) brightness(100%) contrast(103%);
}

.feature-title {
  color: #173e69;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.feature-subtitle {
  margin-top: 3px;
  color: #95a2b3;
  font-size: 12px;
  line-height: 1.3;
}

.hero-bottom-label {
  position: absolute;
  left: 0;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #98a5b6;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.hero-bottom-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: -21px;
  width: 34px;
  height: 1px;
  background: rgba(255, 104, 8, .42);
}

.hero-visual {
  height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orbit {
  position: absolute;
  width: 500px;
  height: 700px;
  border: 1px solid rgba(255, 104, 8, .25);
  border-radius: 48% 52% 50% 50% / 42% 47% 53% 58%;
  transform: rotate(-8deg);
}

.hero-photo-wrap {
  width: 365px;
  height: 515px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 49% 49% 47% 45% / 32% 32% 62% 63%;
  background: #edf4f8;
  box-shadow: 0 28px 60px rgba(15, 57, 92, .08);
}

.hero-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 49%;
  transform: scale(1.04);
}

.hero-petal {
  position: absolute;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, rgba(255, 104, 8, .05), rgba(255, 104, 8, .16));
}

.hero-petal-top {
  width: 96px;
  height: 96px;
  top: 32px;
  left: 22px;
}

.hero-petal-bottom {
  width: 130px;
  height: 130px;
  right: 8px;
  bottom: 62px;
  transform: rotate(14deg);
}

.hero-heart {
  position: absolute;
  top: 100px;
  right: 20px;
  z-index: 5;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff8b20, #ff6200);
  box-shadow: 0 14px 28px rgba(255, 104, 8, .25);
}

.hero-heart img {
  width: 38px;
  filter: brightness(0) invert(1);
}

.photo-caption {
  position: absolute;
  left: -4px;
  bottom: 132px;
  z-index: 6;
  width: 158px;
  padding: 20px 25px 18px 0;
  border-radius: 0 48% 48% 0;
  color: #1c456f;
  background: rgba(255, 255, 255, .83);
  backdrop-filter: blur(8px);
  font-size: 15px;
  line-height: 1.48;
}

.photo-caption-rule {
  width: 34px;
  margin: 12px 0 0;
}

.year-mark {
  position: absolute;
  right: -2px;
  bottom: 48px;
  color: #bec9d6;
  font-size: 21px;
  letter-spacing: .20em;
  line-height: 1.7;
}

.year-mark span {
  display: block;
  margin-top: 8px;
  font-size: 9px;
  letter-spacing: .28em;
  line-height: 1.58;
}

.auth-side {
  position: relative;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  padding: 46px 48px 32px;
  border: 1px solid rgba(225, 231, 239, .88);
  border-radius: 28px;
  background: var(--kabla-surface);
  box-shadow: 0 24px 58px rgba(28, 55, 88, .10);
  backdrop-filter: blur(18px);
}

.auth-card-logo {
  width: 128px;
  height: auto;
  display: block;
}

.auth-heading {
  margin: 26px 0 0;
  color: #10375f;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.05;
}

.auth-kicker {
  margin-top: 7px;
  color: #173d68;
  font-size: 18px;
  font-weight: 600;
}

.auth-period {
  margin-top: 3px;
  color: #99a5b6;
  font-size: 14px;
}

.auth-form { margin-top: 30px; }
.form-group { margin-bottom: 21px; }

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #173d68;
  font-size: 13px;
  font-weight: 700;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 15px;
  z-index: 2;
  width: 20px;
  height: 20px;
  pointer-events: none;
  filter: invert(19%) sepia(19%) saturate(2242%) hue-rotate(173deg) brightness(88%) contrast(98%);
}

.input-icon-svg {
  color: #173d68;
  filter: none;
}

.auth-input {
  width: 100%;
  height: 52px;
  padding: 0 46px 0 50px;
  outline: none;
  border: 1px solid #d5dde7;
  border-radius: 10px;
  color: #163858;
  background: #fff;
  box-shadow: 0 3px 8px rgba(25, 53, 83, .025);
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-input::placeholder { color: #a9b3c0; }

.auth-input:focus {
  border-color: rgba(255, 104, 8, .72);
  box-shadow: 0 0 0 4px rgba(255, 104, 8, .09);
}

.input-shell-error .auth-input {
  border-color: #d06b61;
  box-shadow: 0 0 0 4px rgba(185, 58, 49, .07);
}

.password-toggle {
  position: absolute;
  right: 10px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #173d68;
  background: transparent;
  cursor: pointer;
}

.password-toggle:hover { background: #f7f9fb; }

.password-toggle:focus-visible {
  outline: 3px solid rgba(255, 104, 8, .18);
  outline-offset: 1px;
}

.password-toggle img {
  width: 21px;
  height: 21px;
  filter: invert(19%) sepia(19%) saturate(2242%) hue-rotate(173deg) brightness(88%) contrast(98%);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 4px 0 25px;
}

.remember-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #314d6d;
  font-size: 13px;
  cursor: pointer;
}

.remember-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-check {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid var(--kabla-orange);
  border-radius: 7px;
  background: #fff;
  transition: background .18s ease, transform .18s ease;
}

.custom-check img {
  width: 13px;
  opacity: 0;
  filter: brightness(0) invert(1);
}

.remember-label input:checked + .custom-check { background: var(--kabla-orange); }
.remember-label input:checked + .custom-check img { opacity: 1; }

.auth-link {
  color: var(--kabla-orange-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.auth-link:hover { text-decoration: underline; }
.auth-link:focus-visible { outline: 3px solid rgba(255, 104, 8, .18); outline-offset: 4px; border-radius: 4px; }

.auth-button {
  width: 100%;
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(90deg, #ff790d, #ff6200);
  box-shadow: 0 11px 20px rgba(255, 104, 8, .22);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.auth-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(255, 104, 8, .27);
}

.auth-button:focus-visible {
  outline: 4px solid rgba(255, 104, 8, .18);
  outline-offset: 3px;
}

.auth-button img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.auth-button-link { text-align: center; }

.security-line {
  margin: 34px 0 26px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  color: #a7b2c1;
  font-size: 13px;
}

.security-line::before,
.security-line::after {
  content: "";
  height: 1px;
  background: #e1e6ed;
}

.security-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.security-text img {
  width: 18px;
  height: 18px;
  opacity: .78;
  filter: invert(68%) sepia(13%) saturate(519%) hue-rotate(175deg) brightness(92%) contrast(88%);
}

.auth-footer {
  color: #9aa7b7;
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.auth-footer strong {
  color: var(--kabla-orange-dark);
  font-weight: 700;
}

.auth-error,
.auth-success,
.auth-info {
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.auth-error {
  color: #9f2f28;
  border: 1px solid #f1c9c4;
  background: #fff7f6;
}

.auth-success {
  color: #226445;
  border: 1px solid #cce8da;
  background: #f4fbf7;
}

.auth-info {
  color: #30587e;
  border: 1px solid #d7e5f2;
  background: #f7fbff;
}

.field-error {
  margin-top: 7px;
  color: #b53a31;
  font-size: 12px;
}

.top-slogan {
  position: absolute;
  top: 42px;
  right: 72px;
  z-index: 2;
  color: #8c9aac;
  font-size: 14px;
  line-height: 1.35;
}

.top-slogan::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin-top: 12px;
  background: var(--kabla-orange);
}

.bottom-slogan {
  position: absolute;
  right: 74px;
  bottom: 30px;
  z-index: 2;
  color: #9ba8b7;
  text-align: right;
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.bottom-slogan::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  margin-left: 12px;
  vertical-align: middle;
  background: var(--kabla-orange);
}

.reset-card .auth-heading {
  font-size: 28px;
  line-height: 1.15;
}

.reset-description {
  margin: 13px 0 0;
  color: #748398;
  font-size: 14px;
  line-height: 1.6;
}

.reset-actions {
  margin-top: 20px;
  text-align: center;
}

.reset-actions-spaced { margin-top: 26px; }
.reset-message { margin-top: 24px; }
.back-link { display: inline-block; }

.password-help {
  margin-top: 9px;
  color: #7d8b9d;
  font-size: 11px;
  line-height: 1.45;
}

.password-help ul {
  margin: 7px 0 0;
  padding-left: 18px;
}

@media (max-width: 1240px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr) 470px;
    padding: 30px 34px;
    gap: 34px;
  }

  .auth-hero {
    grid-template-columns: 1fr;
    min-height: 700px;
  }

  .hero-copy { max-width: 440px; }

  .hero-visual {
    position: absolute;
    right: -15px;
    width: 370px;
    opacity: .43;
  }

  .hero-copy { z-index: 5; }
  .photo-caption,
  .year-mark { display: none; }
  .top-slogan,
  .bottom-slogan { display: none; }
}

@media (max-width: 920px) {
  .auth-layout {
    display: block;
    padding: 0;
  }

  .auth-hero {
    min-height: 270px;
    padding: 32px 26px 20px;
    overflow: hidden;
  }

  .hero-copy {
    max-width: 570px;
    padding: 0;
  }

  .brand-logo { width: 142px; }
  .brand-short-rule { margin-top: 16px; }
  .hero-eyebrow { margin-top: 20px; font-size: 12px; }
  .hero-title { font-size: 43px; }
  .hero-subtitle { font-size: 18px; }
  .hero-message,
  .feature-list,
  .hero-bottom-label { display: none; }

  .hero-visual {
    right: 4%;
    top: -145px;
    transform: scale(.72);
    transform-origin: top right;
    opacity: .25;
  }

  .auth-side { padding: 0 18px 34px; }
  .auth-card { max-width: 580px; margin-top: -8px; }
}

@media (max-width: 560px) {
  .auth-hero {
    min-height: 210px;
    padding: 23px 20px;
  }

  .brand-logo { width: 118px; }
  .brand-short-rule { width: 32px; margin-top: 13px; }
  .hero-eyebrow { margin-top: 16px; letter-spacing: .20em; }
  .hero-title { font-size: 34px; }
  .hero-subtitle { font-size: 15px; }
  .orange-rule { margin: 16px 0; }
  .auth-side { padding: 0 12px 20px; }

  .auth-card {
    padding: 30px 22px 24px;
    border-radius: 22px;
  }

  .auth-card-logo { width: 108px; }
  .auth-heading { margin-top: 22px; font-size: 27px; }
  .auth-kicker { font-size: 16px; }

  .auth-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .security-line { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
