/* Giriş ekranları — Artı Çözümler kurumsal görünümü (onaylı tasarım).
   Renkler Artı Anons paletinden; tema cihaz ayarına göre (açık / koyu). */

@font-face {
  font-family: "Manrope";
  src: url("/static/fonts/Manrope-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/static/fonts/Manrope-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/static/fonts/Manrope-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/static/fonts/Manrope-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --border: #e3e7ef;
  --track: #cbd5e1;
  --text: #0f172a;
  --text2: #5b6475;
  --placeholder: #94a3b8;
  --primary: #1d4ed8;
  --primary-shadow: rgba(29, 78, 216, 0.28);
  --link: #1d4ed8;
  --link-hover: #1e3a8a;
  --tonal: #e6edff;
  --on-tonal: #1e3a8a;
  --brand: #0f1e4a;
  --brand-text: #c7d6ff;
  --brand-muted: #a9c1ff;
  --error-bg: #fee2e2;
  --error-border: #fca5a5;
  --error-text: #b91c1c;
  --warn-bg: #fef3c7;
  --warn-text: #92400e;
  --ok-bg: #d1fae5;
  --ok-text: #065f46;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b0f17;
    --surface: #151b26;
    --border: #232b3a;
    --track: #334155;
    --text: #e6eaf2;
    --text2: #98a2b3;
    --placeholder: #64748b;
    --primary: #3b6ef5;
    --primary-shadow: rgba(59, 110, 245, 0.35);
    --link: #8fb0ff;
    --link-hover: #c7d6ff;
    --tonal: #1b2a4d;
    --on-tonal: #c7d6ff;
    --brand: #0e1630;
    --brand-text: #c7d6ff;
    --brand-muted: #8fb0ff;
    --error-bg: #3b1219;
    --error-border: #7f1d1d;
    --error-text: #fca5a5;
    --warn-bg: #3b2410;
    --warn-text: #ffc98f;
    --ok-bg: #0b3326;
    --ok-text: #6ee7b7;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}
a:hover {
  color: var(--link-hover);
}

[hidden] {
  /* biome-ignore lint/complexity/noImportantStyles: gizli adım / alan her kuralı ezmeli */
  display: none !important;
}

/* --- Yerleşim -------------------------------------------------------- */

.shell {
  display: flex;
  min-height: 100vh;
}

.brand-panel {
  display: none;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  gap: 24px;
}

.mobile-brand,
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.mobile-brand {
  width: 100%;
  max-width: 440px;
}

.logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}
.logo-inverted {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #ffffff;
  color: #0f1e4a;
  font-size: 22px;
}

.card {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 960px) {
  .brand-panel {
    width: 520px;
    flex-shrink: 0;
    padding: 56px;
    background: var(--brand);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
  }
  .brand {
    font-size: 20px;
  }
  .brand-copy {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--brand-muted);
  }
  .brand-copy h1 {
    margin: 0;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.8px;
  }
  .brand-copy p {
    margin: 0;
    max-width: 380px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--brand-text);
  }
  .main {
    justify-content: center;
    padding: 40px;
  }
  .shell .mobile-brand,
  .shell .company-mobile {
    display: none;
  }
  .card {
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
  }
}

/* --- Alt bilgi (şirket) ---------------------------------------------- */

.company {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  line-height: 1.5;
}
.company .company-name {
  font-weight: 800;
}
.company .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 8px;
  font-weight: 600;
}
.company-mobile {
  width: 100%;
  max-width: 440px;
  margin-top: auto;
  align-items: center;
  text-align: center;
  color: var(--text2);
}
.company-mobile .legal-links {
  justify-content: center;
}
.company-panel {
  font-size: 13px;
  color: var(--brand-muted);
}
.company-panel .company-name {
  color: var(--brand-text);
}
.company-panel a {
  color: var(--brand-muted);
  font-weight: 600;
}
.company-panel a:hover {
  color: #ffffff;
}

/* --- Bileşenler ------------------------------------------------------ */

.step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-title h2,
.step-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.step-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}
.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-head h2 {
  font-size: 24px;
}

.muted {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text2);
}
.muted strong {
  color: var(--text);
}
.center {
  text-align: center;
}
.right {
  display: flex;
  justify-content: flex-end;
}

.app-pill {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--tonal);
  color: var(--on-tonal);
  font-size: 13px;
  font-weight: 700;
}
.app-pill-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px dashed var(--track);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
label {
  font-size: 13px;
  font-weight: 700;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid var(--track);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font:
    600 17px Manrope,
    system-ui,
    sans-serif;
  outline: none;
}
input::placeholder {
  color: var(--placeholder);
  font-weight: 500;
}
input:focus,
select:focus {
  border: 2px solid var(--primary);
  padding: 0 15px;
}

.phone-row {
  display: flex;
  gap: 8px;
}
.phone-row .country {
  width: 118px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 16px;
  padding-right: 8px;
}
.phone-row input {
  flex: 1;
  min-width: 0;
}

.password-row {
  position: relative;
}
.password-row input {
  padding-right: 56px;
}

.button {
  height: 56px;
  border-radius: 16px;
  font:
    800 16px Manrope,
    system-ui,
    sans-serif;
  cursor: pointer;
}
.button.primary {
  border: none;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 24px var(--primary-shadow);
}
.button.secondary {
  border: 1px solid var(--track);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}
.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.icon-button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-button.inset {
  position: absolute;
  right: 6px;
  top: 6px;
  border: none;
  background: transparent;
  color: var(--text2);
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-button {
  border: none;
  background: none;
  padding: 0;
  color: var(--link);
  font:
    700 14px Manrope,
    system-ui,
    sans-serif;
  cursor: pointer;
}
.link-button:disabled {
  color: var(--placeholder);
  cursor: default;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--placeholder);
  font-size: 13px;
  font-weight: 600;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.chip {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
}

.remember,
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 500;
}
.remember {
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.remember span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.remember strong {
  font-size: 15px;
}
.remember small {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text2);
}
.consent {
  font-size: 14px;
  line-height: 1.45;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.badge {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--tonal);
  color: var(--on-tonal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.code-boxes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.code-box {
  height: 68px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--track);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}
.code-box.active {
  border: 2px solid var(--primary);
}
.code-boxes .code-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  font-size: 16px;
}

.resend {
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
}

.alert {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
}
.alert.alert-warning {
  background: var(--warn-bg);
  border: none;
  color: var(--warn-text);
  font-size: 13px;
}
.alert.alert-ok {
  background: var(--ok-bg);
  border: none;
  color: var(--ok-text);
}

.progress {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.progress-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--track);
}
.progress-bar.active {
  background: var(--primary);
}

.turnstile:empty {
  display: none;
}

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 16px;
}

/* Organizasyon seçimi */
.org-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.org-option {
  justify-content: flex-start;
  text-align: left;
  padding: 0 16px;
}

.account-row {
  display: grid;
  gap: 4px;
}

.account-row .org-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.account-identifier {
  font-size: 0.85em;
}

.link-button {
  justify-self: end;
  background: none;
  border: 0;
  color: inherit;
  opacity: 0.7;
  font: inherit;
  font-size: 0.85em;
  cursor: pointer;
  text-decoration: underline;
}

a.button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.account-row .org-option {
  height: auto;
  min-height: 56px;
  padding: 8px 16px;
}
