/* EV10 Auth — balanced premium login */
:root {
  --a-ink: #0B1410;
  --a-text: #14201A;
  --a-muted: #58644D;
  --a-line: #E2E6DF;
  --a-bg: #F4F6F3;
  --a-surface: #FFFFFF;
  --a-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --a-display: "Plus Jakarta Sans", var(--a-font);
  --a-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --a-accent: #1A2B22;
  --a-accent-soft: rgba(140, 160, 116, 0.18);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; }

body.login-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--a-font);
  color: var(--a-text);
  background: var(--a-bg);
}

body.login-body.role-owner,
body.login-body.role-tenant,
body.login-body.role-admin {
  --a-accent: #1A2B22;
  --a-accent-soft: rgba(140, 160, 116, 0.18);
}

/* Form side larger — left brand is supporting, not dominant */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 42%) minmax(0, 58%);
}

/* ── Brand column ── */
.auth-stage {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 32px 28px;
  color: #fff;
  background: #0B1410;
}

.auth-stage__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 280px at 15% 10%, rgba(140, 160, 116, 0.28), transparent 60%),
    radial-gradient(420px 260px at 90% 90%, rgba(88, 100, 77, 0.22), transparent 55%),
    linear-gradient(165deg, #0B1410 0%, #14201A 45%, #1A2B22 100%);
  background-size: 130% 130%;
  animation: auth-forest 16s ease-in-out infinite alternate;
}

@keyframes auth-forest {
  from { background-position: 0% 0%; }
  to { background-position: 100% 40%; }
}

.auth-stage__ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  right: -80px;
  bottom: 12%;
  pointer-events: none;
  animation: auth-ring 10s ease-in-out infinite alternate;
}

.auth-stage__ring::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}

@keyframes auth-ring {
  from { transform: translateY(0) scale(1); opacity: 0.7; }
  to { transform: translateY(-12px) scale(1.04); opacity: 1; }
}

.auth-stage__top,
.auth-stage__body,
.auth-stage__foot {
  position: relative;
  z-index: 1;
}

.auth-stage__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  animation: auth-in 550ms var(--a-ease) both;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.auth-logo__mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
}

.auth-logo strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth-logo small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.58;
  font-weight: 650;
}

.auth-ghost {
  font-size: 12px;
  font-weight: 650;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  transition: background 150ms var(--a-ease), color 150ms var(--a-ease);
}

.auth-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.auth-stage__body {
  padding: 20px 0;
  max-width: 360px;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  animation: auth-in 550ms var(--a-ease) 50ms both;
}

.auth-eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #32D583;
}

.auth-stage__body h1 {
  margin: 0;
  font-family: var(--a-display);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  animation: auth-in 600ms var(--a-ease) 90ms both;
}

.auth-stage__body > p {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.66);
  animation: auth-in 600ms var(--a-ease) 130ms both;
}

.auth-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.auth-points li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  animation: auth-in 550ms var(--a-ease) both;
}

.auth-points li:last-child { border-bottom: 0; }
.auth-points li:nth-child(1) { animation-delay: 170ms; }
.auth-points li:nth-child(2) { animation-delay: 220ms; }
.auth-points li:nth-child(3) { animation-delay: 270ms; }

.auth-points li em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.35);
  width: 20px;
  flex-shrink: 0;
}

.auth-stage__foot {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-weight: 550;
  animation: auth-in 550ms var(--a-ease) 320ms both;
}

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

/* ── Form column (primary) ── */
.auth-panel {
  display: grid;
  place-items: center;
  padding: 40px 32px;
  background:
    radial-gradient(480px 220px at 80% 0%, var(--a-accent-soft), transparent 60%),
    linear-gradient(180deg, #F8FAFC 0%, #F1F4F9 100%);
}

.auth-card {
  width: min(100%, 400px);
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: 18px;
  padding: 30px 28px 24px;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 20px 44px rgba(16, 24, 40, 0.08);
  animation: auth-in 600ms var(--a-ease) 60ms both;
}

.auth-card__mobile {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.auth-card__mobile .auth-logo__mark {
  background: var(--a-ink);
  border: none;
  color: #fff;
}

.auth-card__mobile strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--a-ink);
}

.auth-card__mobile span {
  font-size: 12px;
  color: var(--a-muted);
  font-weight: 600;
}

.auth-card__role {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--a-accent);
}

.auth-card h1 {
  margin: 0;
  font-family: var(--a-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--a-ink);
  line-height: 1.15;
}

.auth-card__sub {
  margin: 7px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--a-muted);
}

.auth-alert {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid #FECDCA;
  background: #FEF3F2;
  color: #B42318;
  font-size: 13px;
  font-weight: 650;
}

.auth-form {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

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

.auth-field label {
  font-size: 12.5px;
  font-weight: 750;
  color: var(--a-text);
}

.auth-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--a-line);
  border-radius: 11px;
  padding: 0 13px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--a-ink);
  background: #fff;
  transition: border-color 150ms var(--a-ease), box-shadow 150ms var(--a-ease);
}

.auth-field input::placeholder { color: #98A2B3; }
.auth-field input:hover { border-color: #CDD5E0; }

.auth-field input:focus {
  outline: none;
  border-color: var(--a-accent);
  box-shadow: 0 0 0 3px var(--a-accent-soft);
}

.auth-field__hint {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--a-muted);
  line-height: 1.4;
}

.auth-card--password {
  width: min(100%, 440px);
  padding: 32px 30px 26px;
}

.auth-card--password .auth-form {
  gap: 14px;
}

.auth-card--password .auth-field input {
  min-height: 50px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  background: #FBFCFB;
}

.auth-card--password .auth-field input:focus {
  background: #fff;
}

.auth-card--password .auth-submit {
  margin-top: 4px;
  min-height: 50px;
  border-radius: 12px;
  font-size: 15px;
}

.auth-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
}

.auth-forgot {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--a-muted);
  text-decoration: none;
}

.auth-forgot:hover { color: var(--a-accent); }

.auth-submit {
  min-height: 46px;
  border: 0;
  border-radius: 11px;
  background: var(--a-accent);
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 10px 22px var(--a-accent-soft);
  transition: transform 150ms var(--a-ease), filter 150ms var(--a-ease);
}

.auth-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.auth-register {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13.5px;
  font-weight: 650;
}

.auth-register a {
  color: var(--a-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-secure {
  margin: 16px 0 0;
  text-align: center;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--a-muted);
}

.auth-secure::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #12B76A;
  vertical-align: middle;
}

@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-stage {
    padding: 22px 20px;
    min-height: auto;
  }
  .auth-stage__body {
    padding: 18px 0 8px;
    max-width: none;
  }
  .auth-stage__body h1 { font-size: 28px; }
  .auth-points { display: none; }
  .auth-stage__foot { display: none; }
  .auth-stage__ring { display: none; }
}

@media (max-width: 640px) {
  .auth-stage { display: none; }
  .auth-panel {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px 16px max(28px, env(safe-area-inset-bottom));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .auth-card {
    padding: 24px 20px 20px;
    width: 100%;
  }
  .auth-card__mobile { display: flex; }
  .auth-card h1 { font-size: 22px; }
  .auth-field input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-stage__ring,
  .auth-stage__top,
  .auth-eyebrow,
  .auth-stage__body h1,
  .auth-stage__body > p,
  .auth-points li,
  .auth-stage__foot,
  .auth-card {
    animation: none !important;
  }
}

/* Panel sözleşme onay kapısı */
.agree-body { background: #F4F6F3; }
.agree-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.agree-page__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  background: #0B1410;
}
.agree-page__out {
  color: rgba(255,255,255,0.82);
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
}
.agree-page__out:hover { color: #fff; }
.agree-sheet {
  width: min(760px, calc(100% - 32px));
  margin: 28px auto 48px;
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid var(--a-line);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(11, 20, 16, 0.06);
}
.agree-sheet__kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8CA074;
}
.agree-sheet h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--a-ink);
  line-height: 1.2;
}
.agree-sheet__sub {
  margin: 10px 0 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--a-muted);
}
.agree-steps {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.agree-steps li {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--a-line);
  font-size: 13px;
  font-weight: 650;
  color: var(--a-muted);
  background: #FAFBF9;
}
.agree-steps li.is-done {
  color: #12704A;
  background: #F0FDF4;
  border-color: #BBF7D0;
}
.agree-steps li.is-current {
  color: var(--a-ink);
  border-color: #C5D0B8;
  background: #fff;
  box-shadow: inset 3px 0 0 #8CA074;
}
.agree-doc {
  max-height: min(52vh, 480px);
  overflow: auto;
  padding: 18px 18px 20px;
  border: 1px solid var(--a-line);
  border-radius: 14px;
  background: #FAFBF9;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--a-text);
}
.agree-doc p { margin: 0 0 0.9em; }
.agree-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.agree-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--a-text);
  cursor: pointer;
}
.agree-check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #1A2B22;
}
.agree-form .auth-submit {
  margin-top: 8px;
  width: 100%;
}
.agree-form .auth-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (max-width: 640px) {
  .agree-page__bar { padding: 14px 16px; }
  .agree-sheet { padding: 20px 16px; margin-top: 16px; }
  .agree-sheet h1 { font-size: 22px; }
}
