/* Giriş / kayıt — gece-gündüz */
html.sleek-shell body.auth-page {
  min-height: 100%;
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
}
html.sleek-shell body.auth-page,
html.sleek-shell:not(.sleek-cream) body.auth-page {
  background: #0F0C29;
  color: #fff;
}
html.sleek-cream body.auth-page {
  background: #FAF5EB !important;
  color: #2D3436;
}

.auth-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
  box-sizing: border-box;
}
.auth-brand {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 8px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
html.sleek-cream .auth-brand { color: #2D3436; }
.auth-head {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.auth-head .auth-sign {
  margin: 6px auto 0;
  padding: 0 12px 2px;
}
.auth-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}
.auth-blob--a {
  top: -5rem;
  left: -5rem;
  width: 16rem;
  height: 16rem;
  background: rgba(255, 107, 107, 0.12);
}
.auth-blob--b {
  bottom: -5rem;
  right: -5rem;
  width: 20rem;
  height: 20rem;
  background: rgba(78, 205, 196, 0.12);
}
html.sleek-cream .auth-blob--a { background: rgba(255, 107, 107, 0.1); }
html.sleek-cream .auth-blob--b { background: rgba(78, 205, 196, 0.1); }

.auth-hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 0 24px;
  text-align: center;
}
.auth-hero--compact {
  flex: 0 0 auto;
  padding-top: 28px;
  padding-bottom: 24px;
}
.auth-illust {
  position: relative;
  width: 192px;
  height: 192px;
  margin-bottom: 28px;
}
.auth-hero--compact .auth-illust {
  width: 128px;
  height: 128px;
  margin-bottom: 20px;
}
.auth-illust-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #FF6B6B;
  filter: blur(60px);
  opacity: 0.3;
  animation: authPulse 2.4s ease-in-out infinite;
}
.auth-hero--compact .auth-illust-halo {
  background: #4ECDC4;
  filter: blur(50px);
  opacity: 0.28;
}
html.sleek-cream .auth-illust-halo { opacity: 0.2; }
@keyframes authPulse {
  0%, 100% { transform: scale(1); opacity: 0.28; }
  50% { transform: scale(1.06); opacity: 0.4; }
}
.auth-illust img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}
.auth-kicker {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(78, 205, 196, 0.65);
  margin-bottom: 6px;
}
html.sleek-cream .auth-kicker { color: #4ECDC4; }
.auth-view--register .auth-kicker {
  color: rgba(255, 107, 107, 0.7);
}
html.sleek-cream .auth-view--register .auth-kicker { color: #FF6B6B; }
.auth-title {
  margin: 0;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
}
html.sleek-cream .auth-title { color: #2D3436; }
.auth-lead {
  margin: 8px auto 0;
  max-width: 280px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.45;
}
html.sleek-cream .auth-lead { color: #636E72; }

.auth-body {
  position: relative;
  z-index: 1;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}
.auth-fields { display: flex; flex-direction: column; gap: 12px; }
.auth-field {
  position: relative;
}
.auth-field .auth-ico {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ECDC4;
  pointer-events: none;
}
.auth-field input,
.auth-field select {
  width: 100%;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #17153B;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 0 24px 0 56px;
  outline: none;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}
.auth-field input::placeholder { color: rgba(255, 255, 255, 0.22); }
html.sleek-cream .auth-field input,
html.sleek-cream .auth-field select {
  background: #fff;
  color: #2D3436;
  border-color: rgba(235, 220, 199, 0.7);
  box-shadow: 0 6px 18px rgba(45, 52, 54, 0.05);
}
html.sleek-cream .auth-field input::placeholder { color: rgba(99, 110, 114, 0.4); }
.auth-field input:focus,
.auth-field select:focus {
  border-color: rgba(255, 107, 107, 0.55);
}
.auth-eye {
  position: absolute;
  right: 18px;
  top: 0;
  bottom: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.35);
  padding: 0 4px;
  cursor: pointer;
}
html.sleek-cream .auth-eye { color: rgba(99, 110, 114, 0.5); }

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 8px 0;
}
.auth-link {
  border: 0;
  background: none;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4ECDC4;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  margin-left: auto;
}
html.sleek-cream .auth-link:hover { color: #FF6B6B; }

.auth-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.auth-btn {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: #fff;
  transition: transform 0.12s ease;
}
.auth-btn:active { transform: scale(0.98); }
.auth-btn:disabled { opacity: 0.55; cursor: default; }
.auth-btn--primary {
  background: #FF6B6B;
  box-shadow: 0 8px 30px rgba(255, 107, 107, 0.3);
}
.auth-btn--teal {
  background: #4ECDC4;
  box-shadow: 0 8px 30px rgba(78, 205, 196, 0.28);
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}
.auth-or span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.28);
}
html.sleek-cream .auth-or span { color: rgba(99, 110, 114, 0.45); }
.auth-or::before,
.auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
html.sleek-cream .auth-or::before,
html.sleek-cream .auth-or::after { background: rgba(235, 220, 199, 0.7); }

.auth-alt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-btn--ghost {
  height: 56px;
  background: #17153B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 900;
}
html.sleek-cream .auth-btn--ghost {
  background: #fff;
  color: #2D3436;
  border-color: rgba(235, 220, 199, 0.7);
  box-shadow: 0 6px 18px rgba(45, 52, 54, 0.05);
}
.auth-btn--ghost .auth-ico-teal { color: #4ECDC4; }
.auth-btn--ghost .auth-ico-coral { color: #FF6B6B; }
.auth-btn--ghost.is-active {
  border-color: rgba(78, 205, 196, 0.7);
  box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.18);
}
#inviteModeBtn.is-active {
  border-color: rgba(255, 107, 107, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.16);
}
.auth-view--login.is-alt-login .auth-fields { display: none; }

.auth-switch {
  text-align: center;
  padding-top: 18px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}
html.sleek-cream .auth-switch { color: #636E72; }
.auth-switch button {
  border: 0;
  background: none;
  color: #FF6B6B;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-left: 4px;
  cursor: pointer;
}
.auth-view--register .auth-switch button { color: #4ECDC4; }
.auth-switch--inline {
  text-align: left;
  padding-top: 0;
  font-size: 12px;
  flex: 1;
  min-width: 0;
}
.auth-switch--inline button { margin-left: 2px; }

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 16px;
}
.auth-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(78, 205, 196, 0.4);
  background: rgba(78, 205, 196, 0.18);
  color: #4ECDC4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
html.sleek-cream .auth-check {
  background: rgba(78, 205, 196, 0.1);
  border-color: rgba(78, 205, 196, 0.25);
}
.auth-check input { display: none; }
.auth-check svg { opacity: 0.35; }
.auth-check.is-on svg { opacity: 1; }
.auth-terms p {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.4);
}
html.sleek-cream .auth-terms p { color: #636E72; }

.auth-extra { display: none; }
.auth-extra.is-open { display: flex; flex-direction: column; gap: 12px; }

.auth-msg {
  display: none;
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.auth-msg.show { display: block; }
.auth-msg.err {
  background: rgba(255, 107, 107, 0.15);
  color: #FF8A80;
}
.auth-msg.ok {
  background: rgba(78, 205, 196, 0.15);
  color: #4ECDC4;
}
html.sleek-cream .auth-msg.err { color: #C44536; }
html.sleek-cream .auth-msg.ok { color: #0f766e; }

.auth-view { display: none; }
.auth-view.is-on { display: flex; flex-direction: column; flex: 1; min-height: 0; }

.auth-hospital h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
}
.auth-hospital .login-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
html.sleek-cream .auth-hospital .login-sub { color: #636E72; }
.auth-page .hospital-card-grid {
  display: grid;
  gap: 10px;
}
.auth-page .hospital-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #17153B;
  color: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
}
html.sleek-cream .auth-page .hospital-card {
  background: #fff;
  color: #2D3436;
  border-color: rgba(235, 220, 199, 0.7);
}
.auth-page .hospital-card-name { display: block; font-weight: 800; }
.auth-page .hospital-card-hint { display: block; font-size: 12px; opacity: 0.55; margin-top: 4px; }

.auth-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 22px auto 4px;
  padding: 8px 12px;
  text-decoration: none;
  text-align: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.auth-sign-name {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.72);
}
.auth-sign-url {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 12px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.48);
}
html.sleek-cream .auth-sign-name {
  color: #343A4D;
}
html.sleek-cream .auth-sign-url {
  color: #4A5163;
}
.auth-sign:hover .auth-sign-name,
.auth-sign:focus-visible .auth-sign-name {
  color: #fff;
}
.auth-sign:hover .auth-sign-url,
.auth-sign:focus-visible .auth-sign-url {
  color: rgba(255, 255, 255, 0.78);
}
html.sleek-cream .auth-sign:hover .auth-sign-name,
html.sleek-cream .auth-sign:focus-visible .auth-sign-name {
  color: #1B2130;
}
html.sleek-cream .auth-sign:hover .auth-sign-url,
html.sleek-cream .auth-sign:focus-visible .auth-sign-url {
  color: #2D3436;
}

.auth-page .self-register-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 6, 24, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.auth-page .self-register-modal[hidden] { display: none !important; }
.auth-page .self-register-modal-inner {
  width: min(100%, 420px);
  background: #17153B;
  color: #fff;
  border-radius: 24px;
  padding: 22px;
  margin-bottom: env(safe-area-inset-bottom, 0px);
}
html.sleek-cream .auth-page .self-register-modal-inner {
  background: #fff;
  color: #2D3436;
}
.auth-page .self-register-modal-inner h3 { margin: 0 0 8px; }
.auth-page .self-register-grid {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}
.auth-page .self-register-grid .admin-input,
.auth-page .self-register-grid input {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #12122e;
  color: inherit;
  padding: 0 12px;
  box-sizing: border-box;
  font-size: 16px;
}
html.sleek-shell body.auth-page input,
html.sleek-shell body.auth-page textarea,
html.sleek-shell body.auth-page select {
  font-size: 16px !important;
}
html.sleek-cream .auth-page .self-register-grid input {
  background: #FAF5EB;
  border-color: #EBDCC7;
}

html:has(body.auth-page) #siteThemeLoginBg { display: none !important; }
html.sleek-shell body.auth-page .mobile-tabbar { display: none !important; }

.auth-login-layout {
  display: grid;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  align-items: center;
  gap: 12px 14px;
}
.auth-getapp[hidden] {
  display: none !important;
}
html.pwa-standalone .auth-getapp {
  display: none !important;
}
.auth-getapp {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 14px 12px;
  border-radius: 22px;
  background: #17153B;
  border: 1px solid rgba(78, 205, 196, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  color: #fff;
  min-width: 0;
  cursor: pointer;
}
html.sleek-cream .auth-getapp {
  background: #fff;
  color: #2D3436;
  border-color: rgba(78, 205, 196, 0.35);
  box-shadow: 0 8px 22px rgba(45, 52, 54, 0.08);
}
.auth-getapp-ico {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ECDC4;
  background: rgba(78, 205, 196, 0.14);
}
html.sleek-cream .auth-getapp-ico {
  background: rgba(78, 205, 196, 0.16);
}
.auth-getapp h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.auth-getapp p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
}
html.sleek-cream .auth-getapp p { color: #636E72; }
.auth-getapp-btn {
  margin-top: 4px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0F0C29;
  background: #4ECDC4;
  border-radius: 999px;
  height: 36px;
  padding: 0 14px;
  width: 100%;
}
.auth-getapp-btn:active { transform: scale(0.98); }

html.sleek-shell body.auth-page.has-getapp .auth-login-layout {
  grid-template-columns: minmax(0, 1fr) minmax(132px, 42%);
  grid-template-areas:
    "hero app"
    "form form";
}
html.sleek-shell body.auth-page.has-getapp .auth-login-layout > .auth-hero { grid-area: hero; }
html.sleek-shell body.auth-page.has-getapp .auth-login-layout > .auth-getapp { grid-area: app; }
html.sleek-shell body.auth-page.has-getapp .auth-login-layout > .auth-body { grid-area: form; }
html.sleek-shell body.auth-page.has-getapp .auth-hero .auth-illust {
  width: 104px;
  height: 104px;
  margin-bottom: 10px;
}
html.sleek-shell body.auth-page.has-getapp .auth-hero .auth-title {
  font-size: 28px;
}

/* Mobil: tam genişlik, eşit yan boşluk. Klavye açılınca yatay kaymasın. */
html.sleek-shell:has(body.auth-page) {
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
}
html.sleek-shell:has(body.auth-page),
html.sleek-shell body.auth-page {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
html.sleek-shell body.auth-page .auth-blob--a {
  left: 0;
  transform: translateX(-40%);
}
html.sleek-shell body.auth-page .auth-blob--b {
  right: 0;
  transform: translateX(40%);
}
html.sleek-shell body.auth-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}
html.sleek-shell body.auth-page .auth-screen {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  align-self: stretch;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
  align-items: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
}
html.sleek-shell body.auth-page .auth-view.is-on,
html.sleek-shell body.auth-page .auth-login-layout,
html.sleek-shell body.auth-page .auth-body,
html.sleek-shell body.auth-page .login-form,
html.sleek-shell body.auth-page .auth-fields,
html.sleek-shell body.auth-page .auth-actions {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  align-self: stretch;
}
html.sleek-shell body.auth-page:not(.has-getapp) .auth-hero {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  align-self: stretch;
}
html.sleek-shell body.auth-page.has-getapp .auth-hero,
html.sleek-shell body.auth-page.has-getapp .auth-getapp {
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
}
html.sleek-shell body.auth-page .auth-field input,
html.sleek-shell body.auth-page .auth-field select,
html.sleek-shell body.auth-page .auth-btn {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
html.auth-frame-locked,
html.auth-frame-locked body.auth-page {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: var(--auth-frame-w, 100%) !important;
  height: var(--auth-frame-h, 100svh) !important;
  min-width: var(--auth-frame-w, 100%) !important;
  max-width: var(--auth-frame-w, 100%) !important;
  min-height: var(--auth-frame-h, 100svh) !important;
  max-height: var(--auth-frame-h, 100svh) !important;
  overflow: hidden !important;
  overscroll-behavior: none;
}
html.auth-frame-locked {
  overflow: hidden !important;
}
html.auth-frame-locked body.auth-page {
  transform: translate3d(var(--auth-vv-x, 0px), var(--auth-vv-y, 0px), 0);
  transform-origin: 0 0;
}
html.auth-frame-locked body.auth-page .auth-screen {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  overflow-x: hidden;
  overflow-y: auto;
}
@media (min-width: 768px) {
  html.sleek-shell body.auth-page {
    align-items: center;
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
  html.sleek-shell body.auth-page .auth-screen {
    width: 100% !important;
    max-width: 400px !important;
    align-self: center;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  html.sleek-shell body.auth-page.has-getapp .auth-screen {
    max-width: 860px !important;
  }
  html.sleek-shell body.auth-page.has-getapp .auth-login-layout {
    grid-template-columns: minmax(220px, 280px) minmax(320px, 400px);
    grid-template-areas:
      "app hero"
      "app form";
    justify-content: center;
    gap: 8px 48px;
    align-items: center;
  }
  html.sleek-shell body.auth-page.has-getapp .auth-getapp {
    padding: 22px 20px 18px;
    border-radius: 28px;
  }
  html.sleek-shell body.auth-page.has-getapp .auth-getapp h2 { font-size: 22px; }
  html.sleek-shell body.auth-page.has-getapp .auth-getapp p { font-size: 14px; }
  html.sleek-shell body.auth-page.has-getapp .auth-getapp-btn { height: 44px; font-size: 13px; }
  html.sleek-shell body.auth-page.has-getapp .auth-hero .auth-illust {
    width: 128px;
    height: 128px;
  }
  html.sleek-shell body.auth-page.has-getapp .auth-hero .auth-title {
    font-size: 36px;
  }
}
