.ss-auth-view .ss-page::before { display: none; }

.ss-auth-view .ss-page {
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 12%, rgba(217,154,63,.13), transparent 30%),
    radial-gradient(circle at 92% 82%, rgba(15,109,104,.12), transparent 34%),
    var(--ss-cream);
}

.auth-stage {
  width: min(calc(100% - 36px), var(--ss-max));
  min-height: calc(100svh - 112px);
  margin: 10px auto 0;
  padding: clamp(28px,4.5vw,72px);
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(390px,.82fr);
  gap: clamp(28px,5vw,86px);
  align-items: stretch;
  border: 1px solid rgba(9,25,35,.1);
  border-radius: 34px;
  background: rgba(255,250,243,.72);
  box-shadow: 0 30px 100px rgba(9,25,35,.09);
}

.auth-story {
  position: relative;
  min-height: 620px;
  padding: clamp(34px,4.6vw,72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
  color: var(--ss-paper);
  border-radius: 27px;
  background: var(--ss-navy);
}

.auth-story::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(9,25,35,.18), rgba(9,25,35,.88)),
    url("assets/ankara-tech-v2.png") center / cover no-repeat;
  transform: scale(1.035);
}

.auth-story::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 75% 19%, rgba(217,154,63,.37), transparent 23%),
    linear-gradient(180deg, rgba(9,25,35,.17), rgba(9,25,35,.78));
}

.auth-story-copy {
  max-width: 760px;
}

.auth-kicker {
  margin: 0 0 22px;
  color: #f4bd69;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.auth-story h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ss-paper);
  font-size: clamp(3.35rem,6vw,6.6rem);
  font-weight: 600;
  letter-spacing: -.07em;
  line-height: .88;
  text-wrap: balance;
}

.auth-story h1 span { color: #f4bd69; }

.auth-story-copy > p:last-child {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255,250,243,.76);
  font-size: clamp(15px,1.35vw,19px);
  line-height: 1.6;
}

.auth-trust-ribbon {
  margin-top: clamp(52px,8vw,100px);
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(5,17,23,.48);
  backdrop-filter: blur(18px);
}

.auth-trust-ribbon div {
  min-height: 104px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-trust-ribbon div + div { border-left: 1px solid rgba(255,255,255,.16); }
.auth-trust-ribbon strong { color: #f4bd69; font-size: 13px; font-weight: 750; }
.auth-trust-ribbon span { max-width: 150px; color: rgba(255,250,243,.7); font-size: 10px; line-height: 1.45; }

.auth-panel {
  align-self: center;
  padding: clamp(10px,2vw,30px) 0;
}

.auth-panel-head { margin-bottom: 30px; }
.auth-panel-head .auth-kicker { color: var(--ss-copper); }

.auth-panel h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.5rem,4vw,4.7rem);
  font-weight: 650;
  letter-spacing: -.065em;
  line-height: .92;
  text-wrap: balance;
}

.auth-panel-head > p:last-child {
  max-width: 540px;
  margin: 18px 0 0;
  color: var(--ss-muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-form { display: grid; gap: 17px; }
.auth-form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field > span {
  color: var(--ss-ink);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.auth-field input,
.auth-field select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: var(--ss-ink);
  border: 1px solid rgba(9,25,35,.15);
  border-radius: 12px;
  outline: none;
  background: rgba(255,255,255,.72);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.auth-field input::placeholder { color: rgba(9,25,35,.38); }
.auth-field input:focus,
.auth-field select:focus {
  border-color: var(--ss-teal);
  background: var(--ss-paper);
  box-shadow: 0 0 0 4px rgba(15,109,104,.11);
}

.auth-button {
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--ss-paper) !important;
  border: 0;
  border-radius: 12px;
  background: var(--ss-navy);
  box-shadow: 0 16px 32px rgba(9,25,35,.16);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: transform 320ms var(--ss-ease), background 180ms ease, box-shadow 320ms ease;
}

.auth-button:hover {
  background: var(--ss-teal-deep);
  box-shadow: 0 20px 38px rgba(9,25,35,.22);
  transform: translateY(-2px);
}

.auth-button:disabled { cursor: wait; opacity: .68; transform: none; }
.auth-button span { color: #f4bd69; font-size: 18px; line-height: 1; }

.auth-message {
  display: none;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.auth-message.is-visible { display: block; }
.auth-message.is-error { color: #7d2f16; border: 1px solid rgba(185,81,42,.25); background: rgba(185,81,42,.09); }
.auth-message.is-success { color: #0b4f4c; border: 1px solid rgba(15,109,104,.23); background: rgba(15,109,104,.09); }

.auth-panel-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ss-muted);
  font-size: 12px;
}

.auth-panel-links a {
  color: var(--ss-teal-deep);
  font-weight: 750;
}

.auth-panel-links a:hover { color: var(--ss-copper); }

.auth-notice {
  padding: 18px;
  display: none;
  color: var(--ss-muted);
  border: 1px solid var(--ss-line);
  border-radius: 14px;
  background: rgba(255,255,255,.58);
  font-size: 13px;
  line-height: 1.6;
}

.auth-notice.is-visible { display: block; }
.auth-notice .auth-button { margin-top: 16px; }

.ss-auth-view .site-footer { margin-top: clamp(70px,9vw,130px); }

@media (max-width: 1040px) {
  .auth-stage {
    grid-template-columns: minmax(0,.9fr) minmax(370px,1.1fr);
    gap: 32px;
    padding: 30px;
  }
  .auth-story { padding: 38px; }
  .auth-trust-ribbon { grid-template-columns: 1fr; }
  .auth-trust-ribbon div { min-height: 78px; }
  .auth-trust-ribbon div + div { border-top: 1px solid rgba(255,255,255,.16); border-left: 0; }
}

@media (max-width: 780px) {
  .ss-auth-view .ss-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .auth-stage {
    width: calc(100% - 20px);
    min-height: 0;
    margin-top: 8px;
    padding: 14px;
    grid-template-columns: 1fr;
    border-radius: 24px;
  }
  .auth-story {
    min-height: 560px;
    padding: 30px;
    border-radius: 19px;
  }
  .auth-story h1 { font-size: clamp(3rem,14vw,5rem); }
  .auth-panel { padding: 38px 16px 32px; }
  .auth-panel h2 { font-size: clamp(2.75rem,12vw,4.5rem); }
}

@media (max-width: 520px) {
  .auth-form-row { grid-template-columns: 1fr; }
  .auth-story { min-height: 520px; }
  .auth-trust-ribbon { margin-top: 46px; }
  .auth-trust-ribbon div { padding: 16px; }
  .auth-panel-links { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-button { transition: none; }
}
