/* Ek ince ayarlar — Tailwind CDN ile birlikte */
html { scroll-behavior: smooth; }

/* Üst çubuk marka logosu — boyut + hafif hareket (erişilebilirlik: reduced-motion) */
@keyframes app-brand-logo-breathe {
  0%,
  100% {
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 2px 10px rgba(139, 92, 246, 0.38));
  }
  50% {
    transform: scale(1.06) translateY(-3px);
    filter: drop-shadow(0 6px 20px rgba(167, 139, 250, 0.62));
  }
}
.app-brand-logo {
  animation: app-brand-logo-breathe 2.75s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .app-brand-logo {
    animation: none;
  }
}

/* ——— Genel site (masaüstü / mobil ayrımı) ——— */
@media (min-width: 1024px) {
  html:not(.dark) body.layout-app {
    background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 45%, #f1f5f9 100%);
  }
  html.dark body.layout-app {
    background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(49, 46, 129, 0.35), transparent 55%),
      linear-gradient(180deg, #020617 0%, #0f172a 55%, #020617 100%);
  }
  .app-topbar {
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  }
  .app-main {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }
}

/* ——— Giriş sayfası: tam ekran atmosfer ——— */
.layout-login {
  background: #030712;
}
.layout-login .layout-root {
  background: transparent;
}
.login-main {
  flex: 1 1 auto;
}
/* Giriş: tüm tarayıcılarda en az görünür alan; kaydırma ana sütunda */
.layout-login .login-main {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
.login-hero {
  isolation: isolate;
}
/* Kahraman bölümü — mobilde sabit max-yükseklik yok (imza kırpılmasın) */
.layout-login .login-hero {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}
/* İmza: ekranın fiziksel altında sabit (klavye açıkken gizlenir) */
.layout-login .login-imza-layer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  padding-top: 0.35rem;
  padding-bottom: max(1rem, calc(constant(safe-area-inset-bottom) + 0.85rem));
  padding-bottom: max(1rem, calc(env(safe-area-inset-bottom, 0px) + 0.85rem));
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
/* Klavye / odak: imza formun üzerine binmesin */
html.layout-login.login-kb-open .login-imza-layer {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
/* Gizlilik — araç çubuğu (mobil + masaüstü gradient) */
.layout-login .login-toolbar-btn--privacy {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff !important;
  border: none !important;
  border-radius: 0.75rem;
  white-space: nowrap;
  background: linear-gradient(125deg, #6366f1 0%, #7c3aed 42%, #9333ea 100%);
  box-shadow:
    0 10px 28px -10px rgba(99, 102, 241, 0.6),
    0 4px 14px -6px rgba(147, 51, 234, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
}
.layout-login .login-toolbar-btn--privacy:hover {
  filter: brightness(1.08) saturate(1.04);
  transform: translateY(-1px);
  box-shadow:
    0 14px 34px -10px rgba(99, 102, 241, 0.68),
    0 6px 18px -6px rgba(147, 51, 234, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
@media (max-width: 380px) {
  .layout-login .login-landing-actions-toolbar {
    gap: 0.5rem;
  }
  .layout-login .login-toolbar-btn--privacy {
    font-size: 0.75rem;
    padding: 0.55rem 0.75rem;
  }
}
html.notla-native-shell.layout-login .login-card-wrap,
html.notla-native-shell.layout-login .login-card {
  position: relative;
  z-index: 50;
}
html.notla-native-shell.layout-login.login-kb-open .login-body-col {
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}
.layout-login .login-imza-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(88vw, 15rem);
  max-height: 2.15rem;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: auto;
  opacity: 0.82;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}
@media (min-width: 640px) {
  .layout-login .login-imza-layer {
    padding-bottom: max(0.85rem, calc(constant(safe-area-inset-bottom) + 0.55rem));
    padding-bottom: max(0.85rem, calc(env(safe-area-inset-bottom, 0px) + 0.55rem));
  }
  .layout-login .login-imza-img {
    max-width: min(82vw, 18rem);
    max-height: 2.5rem;
    filter: none;
    opacity: 0.78;
  }
}
@media (min-width: 768px) {
  .layout-login .login-imza-img {
    max-width: min(78vw, 22rem);
    max-height: 2.85rem;
    opacity: 0.8;
  }
}
/* Form alanı — sabit imzanın üstünde kalmaması için */
.layout-login .login-body-col {
  padding-bottom: calc(4rem + constant(safe-area-inset-bottom));
  padding-bottom: calc(4rem + max(0px, env(safe-area-inset-bottom, 0px)));
}
@media (min-width: 640px) {
  .layout-login .login-body-col {
    padding-bottom: calc(4.5rem + constant(safe-area-inset-bottom));
    padding-bottom: calc(4.5rem + max(0px, env(safe-area-inset-bottom, 0px)));
  }
}

/* ——— Not düzenleyici (mobil: çentik / üst bar, ekstra menü) ——— */
.note-editor-overlay {
  padding-top: max(0px, constant(safe-area-inset-top));
  padding-top: max(0px, env(safe-area-inset-top, 0px));
  padding-bottom: max(0px, constant(safe-area-inset-bottom));
  padding-bottom: max(0px, env(safe-area-inset-bottom, 0px));
  padding-left: max(0px, constant(safe-area-inset-left));
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  padding-right: max(0px, constant(safe-area-inset-right));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
}
/* Web: panel yatayda ortada; mobilde alt çeneği koru */
@media (min-width: 640px) {
  .note-editor-overlay.flex {
    justify-content: center;
    align-items: center;
  }
}
@media (max-width: 639px) {
  .note-editor-overlay {
    padding-top: max(0.5rem, calc(constant(safe-area-inset-top) + 0.35rem));
    padding-top: max(0.5rem, calc(env(safe-area-inset-top, 0px) + 0.35rem));
  }
}
.note-editor-sheet {
  max-height: calc(100vh - constant(safe-area-inset-top) - constant(safe-area-inset-bottom) - 1rem);
  max-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 1rem);
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 1rem);
}
.note-editor-toolbar {
  flex-shrink: 0;
}
.note-editor-extras-wrap.is-open .note-editor-extras-toggle .note-editor-extras-chevron {
  transform: rotate(180deg);
}
.note-editor-extras-toggle .note-editor-extras-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
}
#noteEditorMailSendWrap.is-open #noteEditorMailSendToggle .note-editor-mail-send-chevron {
  transform: rotate(180deg);
}
#noteEditorMailSendToggle .note-editor-mail-send-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
}
.login-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse 100% 70% at 15% -10%, rgba(99, 102, 241, 0.45), transparent 52%),
    radial-gradient(ellipse 80% 60% at 95% 10%, rgba(168, 85, 247, 0.28), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(14, 165, 233, 0.12), transparent 45%),
    linear-gradient(180deg, #0f172a 0%, #020617 100%);
}
html:not(.dark) .layout-login .login-ambient {
  background: radial-gradient(ellipse 90% 65% at 20% -5%, rgba(99, 102, 241, 0.35), transparent 50%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(192, 132, 252, 0.22), transparent 48%),
    linear-gradient(180deg, #eef2ff 0%, #e0e7ff 35%, #f8fafc 100%);
}
html:not(.dark) .layout-login {
  background: #f5f7ff;
}
html:not(.dark) .layout-login .login-card {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
}
html:not(.dark) .layout-login .login-card label {
  color: #475569 !important;
}
html:not(.dark) .layout-login .login-field {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
}
html:not(.dark) .layout-login .login-imza-img {
  opacity: 1;
}

/* Giriş — web (lg): sol sütun slogan + daktilo; mobil: buton altı */
.layout-login .login-slogan__text {
  margin: 0;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}
.layout-login .login-slogan__lead {
  display: block;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(0.95rem, 2.8vw, 1.2rem);
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.98);
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
}
.layout-login .login-slogan__rest {
  display: block;
  margin-top: 0.5rem;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(0.875rem, 2.2vw, 1rem);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.01em;
  line-height: 1.55;
  color: rgba(199, 210, 254, 0.92);
  -webkit-font-smoothing: antialiased;
}
@keyframes login-hand-ink {
  0%,
  100% {
    opacity: 0.9;
    filter: brightness(1);
    text-shadow:
      0 1px 0 rgba(0, 0, 0, 0.35),
      0 0 18px rgba(199, 210, 254, 0.25);
  }
  50% {
    opacity: 1;
    filter: brightness(1.08);
    text-shadow:
      0 2px 3px rgba(0, 0, 0, 0.2),
      0 0 26px rgba(167, 139, 250, 0.4);
  }
}
@keyframes login-pen-handwrite {
  0%,
  100% {
    transform: rotate(-0.55deg) translate(0, 0);
  }
  33% {
    transform: rotate(0.4deg) translate(0.6px, -0.4px);
  }
  66% {
    transform: rotate(-0.25deg) translate(-0.45px, 0.35px);
  }
}
.layout-login .login-slogan__rest--hand {
  font-family: "Caveat", "Segoe Script", "Brush Script MT", "Apple Chancery", cursive;
  font-weight: 600;
  font-style: normal;
  text-transform: none;
  font-size: clamp(1.65rem, 5.5vw, 2.65rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: rgba(233, 213, 255, 0.96);
  text-shadow:
    0 1px 0 rgba(15, 23, 42, 0.45),
    0 0 20px rgba(167, 139, 250, 0.35);
}
.layout-login .login-slogan--fx .login-slogan__rest--hand {
  animation: login-hand-ink 3.2s ease-in-out infinite, login-pen-handwrite 4.8s ease-in-out infinite;
  animation-delay: 0.35s, 0s;
}
.layout-login .login-slogan--after-submit {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  text-align: center;
}
.layout-login .login-slogan--after-submit .login-slogan__accent {
  width: 3rem;
  height: 2px;
  margin: 0 auto 1rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, transparent, rgba(196, 181, 253, 0.85), rgba(129, 140, 248, 0.95), rgba(196, 181, 253, 0.85), transparent);
  box-shadow: 0 0 20px rgba(129, 140, 248, 0.35);
}
@media (min-width: 1024px) {
  .layout-login .login-hero {
    overflow-x: visible;
  }
  .layout-login .login-body-col {
    overflow-x: visible;
  }
  .layout-login .login-landing {
    overflow: visible;
    padding-right: clamp(22rem, 40vw, 40rem);
  }
  .layout-login .login-landing-main--split {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    overflow: visible;
  }
  .layout-login .login-hero-typewriter-col {
    align-self: stretch;
    justify-content: center;
    padding-top: 1.25rem;
    padding-bottom: 2rem;
    padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(2.25rem, env(safe-area-inset-right, 0px));
  }
  .layout-login .login-hero-typewriter-col .login-slogan--overlay {
    position: relative;
    z-index: 1;
    text-align: left;
    width: 100%;
    max-width: 100%;
    padding: 0.35rem 0.75rem 0.65rem 0.25rem;
    box-sizing: border-box;
  }
  .layout-login .login-hero-typewriter-col .login-slogan--overlay .login-slogan__accent {
    display: none;
  }
  .layout-login .login-hero-typewriter-col .login-slogan--overlay .login-slogan__text {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .layout-login .login-hero-typewriter-col .login-slogan--overlay .login-slogan__lead {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.2rem;
    box-sizing: border-box;
    font-size: clamp(0.95rem, 1.35vw + 0.65rem, 1.85rem);
    letter-spacing: 0.024em;
    word-spacing: -0.04em;
    line-height: 1.16;
    white-space: nowrap;
    overflow: visible;
  }
  .layout-login .login-hero-typewriter-col .login-slogan--overlay .login-slogan__rest {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 0.45rem;
    margin-left: 0;
    margin-right: 0;
    font-size: clamp(1.32rem, 1.95vw, 1.78rem);
    font-weight: 500;
    letter-spacing: 0.012em;
    line-height: 1.3;
    white-space: normal;
    text-align: left;
  }
  .layout-login .login-hero-typewriter-col .login-slogan--overlay .login-slogan__rest--hand {
    font-size: clamp(1.5rem, 2.35vw, 2.45rem);
    line-height: 1.22;
  }
  .layout-login .login-hero-stack--rail {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    transform: none;
    width: min(38rem, calc(100vw - max(19rem, 1rem)));
    max-width: 38rem;
    z-index: 30;
    min-height: 100dvh;
    height: 100dvh;
    max-height: none;
    box-sizing: border-box;
    padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    padding-left: 1.35rem;
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .layout-login .login-hero-stack--rail .login-card-wrap--desktop {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    max-width: none;
    min-height: 0;
    padding-top: 0.5rem;
    padding-bottom: 1.25rem;
  }
  .layout-login .login-hero-stack--rail .login-card--desktop.login-card--rail {
    border-width: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    animation: none !important;
  }
  html:not(.dark) .layout-login .login-hero-stack--rail .login-card--desktop.login-card--rail {
    box-shadow: none !important;
    border-color: transparent !important;
  }
  .layout-login .login-landing-actions {
    width: fit-content;
    max-width: min(100%, calc(100vw - 40rem));
    margin-left: auto;
    margin-right: auto;
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.35);
    animation: login-toolbar-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .layout-login .login-landing-actions-toolbar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0.25rem 0 0;
    gap: 1rem 1.25rem;
  }
  .layout-login .login-toolbar-btn--contact {
    min-height: 3.35rem;
    padding: 0.9rem 1.85rem;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff !important;
    border: none !important;
    border-radius: 0.9rem;
    background: linear-gradient(125deg, #4f46e5 0%, #7c3aed 38%, #db2777 100%);
    box-shadow:
      0 12px 36px -10px rgba(79, 70, 229, 0.65),
      0 6px 20px -8px rgba(219, 39, 119, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition:
      transform 0.18s ease,
      filter 0.18s ease,
      box-shadow 0.18s ease;
  }
  .layout-login .login-toolbar-btn--contact:hover {
    filter: brightness(1.09) saturate(1.05);
    transform: translateY(-2px);
    box-shadow:
      0 16px 44px -10px rgba(79, 70, 229, 0.72),
      0 8px 24px -8px rgba(219, 39, 119, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
  .layout-login .login-toolbar-btn--download {
    min-height: 3.35rem;
    min-width: 3.5rem;
    padding: 0 1.35rem;
    border: none !important;
    border-radius: 0.9rem;
    color: #0f172a !important;
    background: linear-gradient(125deg, #22d3ee 0%, #2dd4bf 42%, #4ade80 100%);
    box-shadow:
      0 12px 32px -10px rgba(34, 211, 238, 0.55),
      0 4px 16px -6px rgba(45, 212, 191, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition:
      transform 0.18s ease,
      filter 0.18s ease,
      box-shadow 0.18s ease;
  }
  .layout-login .login-toolbar-btn--download:hover {
    filter: brightness(1.07);
    transform: translateY(-2px);
    box-shadow:
      0 16px 40px -10px rgba(34, 211, 238, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }
  .layout-login .login-toolbar-btn--download svg {
    width: 1.35rem;
    height: 1.35rem;
  }
  .layout-login .login-toolbar-btn--privacy {
    min-height: 3.35rem;
    padding: 0.9rem 1.65rem;
    font-size: 1.0625rem;
    border-radius: 0.9rem;
    box-shadow:
      0 12px 36px -10px rgba(99, 102, 241, 0.62),
      0 6px 20px -8px rgba(147, 51, 234, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
  .layout-login .login-toolbar-btn--privacy:hover {
    filter: brightness(1.09) saturate(1.05);
    transform: translateY(-2px);
    box-shadow:
      0 16px 44px -10px rgba(99, 102, 241, 0.7),
      0 8px 24px -8px rgba(147, 51, 234, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
  .layout-login .login-client-strip {
    list-style: none;
    margin: 0;
    padding: 0 0.25rem;
  }
  .layout-login .login-client-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.15rem 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.72) 0%, rgba(30, 27, 75, 0.45) 100%);
    box-shadow:
      0 18px 40px -22px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .layout-login .login-client-card--mobile {
    border-color: rgba(45, 212, 191, 0.45);
    box-shadow:
      0 0 0 1px rgba(45, 212, 191, 0.12),
      0 18px 40px -22px rgba(13, 148, 136, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  .layout-login .login-client-card--web {
    border-color: rgba(129, 140, 248, 0.55);
    box-shadow:
      0 0 0 1px rgba(129, 140, 248, 0.18),
      0 18px 40px -22px rgba(67, 56, 202, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  .layout-login .login-client-card--desktop {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow:
      0 0 0 1px rgba(251, 191, 36, 0.15),
      0 18px 40px -22px rgba(180, 83, 9, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  .layout-login .login-client-card__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    color: rgba(248, 250, 252, 0.95);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  .layout-login .login-client-card--mobile .login-client-card__badge {
    color: #5eead4;
    background: rgba(20, 184, 166, 0.15);
    border-color: rgba(45, 212, 191, 0.35);
  }
  .layout-login .login-client-card--web .login-client-card__badge {
    color: #c4b5fd;
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(129, 140, 248, 0.4);
  }
  .layout-login .login-client-card--desktop .login-client-card__badge {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(251, 191, 36, 0.4);
  }
  .layout-login .login-client-card__title {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.98);
    line-height: 1.2;
  }
  .layout-login .login-client-card__hint {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.45;
    color: rgba(199, 210, 254, 0.88);
    max-width: 12rem;
  }
  .layout-login .login-card-wrap--desktop {
    animation: login-card-enter 0.8s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .layout-login .login-card--desktop {
    animation: login-card-levitate 9s ease-in-out 1s infinite;
  }
}
.layout-login .login-slogan--overlay {
  margin: 0;
  padding: 0.25rem 0.35rem 0.65rem;
  text-align: center;
  position: relative;
}
.layout-login .login-slogan--overlay::before {
  display: none;
}
.layout-login .login-slogan--overlay .login-slogan__accent {
  display: block;
  width: 3.25rem;
  height: 2px;
  margin: 0 auto 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, transparent, rgba(196, 181, 253, 0.9), rgba(129, 140, 248, 0.95), rgba(196, 181, 253, 0.9), transparent);
  box-shadow: 0 0 16px rgba(129, 140, 248, 0.35);
  animation: login-ink-bar-x 3.2s ease-in-out infinite;
  transform-origin: center center;
}
.layout-login .login-slogan--overlay .login-slogan__text {
  margin-left: auto;
  margin-right: auto;
  max-width: 36rem;
}
@keyframes login-ink-bar-x {
  0%,
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
  50% {
    opacity: 0.82;
    transform: scaleX(0.88);
  }
}
.layout-login .login-slogan__cursor {
  display: inline-block;
  width: 0.09em;
  min-width: 2px;
  height: 1em;
  margin-left: 0.12em;
  vertical-align: -0.1em;
  border-radius: 1px;
  background: currentColor;
  opacity: 1;
  animation: login-cursor-blink 0.9s step-end infinite;
}
.layout-login .login-slogan__cursor--off {
  animation: none;
  opacity: 0;
  width: 0;
  min-width: 0;
  margin-left: 0;
  overflow: hidden;
}
@keyframes login-cursor-blink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
/* Kalem / mürekkep hissi — hafif hareket + akan parlama */
@keyframes login-ink-shine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes login-ink-rest {
  0%,
  100% {
    opacity: 0.86;
    filter: brightness(1);
    text-shadow: 0 0 0 transparent;
  }
  50% {
    opacity: 1;
    filter: brightness(1.08);
    text-shadow: 0 0 18px rgba(165, 180, 252, 0.4);
  }
}
@keyframes login-ink-bar {
  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.82;
    transform: scaleY(0.94);
  }
}
@keyframes login-toolbar-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes login-overlay-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes login-overlay-glow {
  0%,
  100% {
    box-shadow:
      0 32px 64px -20px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(129, 140, 248, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 0 36px -10px rgba(99, 102, 241, 0.22);
  }
  50% {
    box-shadow:
      0 40px 72px -16px rgba(0, 0, 0, 0.58),
      0 0 0 1px rgba(192, 132, 252, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.09),
      0 0 56px -4px rgba(167, 139, 250, 0.42);
  }
}
@keyframes login-hero-glow-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.65;
  }
  40% {
    transform: translate(6%, 10%) scale(1.06);
    opacity: 0.95;
  }
  70% {
    transform: translate(-4%, 4%) scale(1.02);
    opacity: 0.75;
  }
}
@keyframes login-shine-sweep {
  0%,
  12% {
    left: -55%;
    opacity: 0;
  }
  22% {
    opacity: 0.85;
  }
  48% {
    left: 125%;
    opacity: 0.75;
  }
  58%,
  100% {
    left: 125%;
    opacity: 0;
  }
}
@keyframes login-card-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes login-card-levitate {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes login-pen-drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(0.45px, -0.35px) rotate(-0.12deg);
  }
  66% {
    transform: translate(-0.4px, 0.25px) rotate(0.1deg);
  }
}
.layout-login .login-slogan--fx {
  animation: login-pen-drift 7.5s ease-in-out infinite;
  will-change: transform;
}
.layout-login .login-slogan--fx .login-slogan__lead {
  background-image: linear-gradient(
    105deg,
    #f8fafc 0%,
    #e0e7ff 14%,
    #c7d2fe 32%,
    #eef2ff 48%,
    #a5b4fc 66%,
    #f1f5f9 82%,
    #e2e8f0 100%
  );
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: login-ink-shine 3.1s ease-in-out infinite;
}
.layout-login .login-slogan--fx .login-slogan__rest:not(.login-slogan__rest--hand) {
  animation: login-ink-rest 2.8s ease-in-out infinite;
  animation-delay: 0.35s;
}
@media (min-width: 1024px) {
  .layout-login .login-slogan--overlay.login-slogan--fx {
    animation: login-pen-drift-lg 5.5s ease-in-out infinite;
  }
}
@keyframes login-pen-drift-lg {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(1.25px, -1px) rotate(-0.28deg);
  }
  66% {
    transform: translate(-1px, 0.85px) rotate(0.22deg);
  }
}
html:not(.dark) .layout-login .login-landing-actions {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 36px -14px rgba(15, 23, 42, 0.12);
}
@media (min-width: 1024px) {
  html:not(.dark) .layout-login .login-landing-actions-toolbar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  html:not(.dark) .layout-login .login-client-card {
    background: linear-gradient(168deg, rgba(255, 255, 255, 0.94) 0%, rgba(238, 242, 255, 0.9) 100%);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow:
      0 16px 36px -20px rgba(15, 23, 42, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }
  html:not(.dark) .layout-login .login-client-card--mobile {
    border-color: rgba(13, 148, 136, 0.38);
    box-shadow:
      0 0 0 1px rgba(45, 212, 191, 0.12),
      0 16px 36px -20px rgba(13, 148, 136, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }
  html:not(.dark) .layout-login .login-client-card--web {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow:
      0 0 0 1px rgba(129, 140, 248, 0.14),
      0 16px 36px -20px rgba(79, 70, 229, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }
  html:not(.dark) .layout-login .login-client-card--desktop {
    border-color: rgba(217, 119, 6, 0.42);
    box-shadow:
      0 0 0 1px rgba(251, 191, 36, 0.18),
      0 16px 36px -20px rgba(245, 158, 11, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }
  html:not(.dark) .layout-login .login-client-card__title {
    color: #0f172a;
  }
  html:not(.dark) .layout-login .login-client-card__hint {
    color: #475569;
  }
  html:not(.dark) .layout-login .login-client-card__badge {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.1);
  }
  html:not(.dark) .layout-login .login-client-card--mobile .login-client-card__badge {
    color: #0d9488;
    background: rgba(45, 212, 191, 0.18);
    border-color: rgba(13, 148, 136, 0.25);
  }
  html:not(.dark) .layout-login .login-client-card--web .login-client-card__badge {
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.22);
  }
  html:not(.dark) .layout-login .login-client-card--desktop .login-client-card__badge {
    color: #b45309;
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(217, 119, 6, 0.28);
  }
}
html:not(.dark) .layout-login .login-slogan--after-submit .login-slogan__accent {
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.5), rgba(99, 102, 241, 0.75), rgba(79, 70, 229, 0.5), transparent);
  box-shadow: none;
}
html:not(.dark) .layout-login .login-slogan--overlay .login-slogan__accent {
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.55), rgba(99, 102, 241, 0.85), rgba(79, 70, 229, 0.55), transparent);
  box-shadow: none;
}
html:not(.dark) .layout-login .login-slogan__lead {
  color: #1e1b4b;
}
html:not(.dark) .layout-login .login-slogan__rest {
  color: #3730a3;
  font-weight: 500;
}
html:not(.dark) .layout-login .login-slogan__rest--hand {
  color: #5b21b6;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 18px rgba(99, 102, 241, 0.25);
}
html:not(.dark) .layout-login .login-slogan--fx .login-slogan__lead {
  background-image: linear-gradient(
    105deg,
    #0f172a 0%,
    #312e81 18%,
    #4338ca 38%,
    #6366f1 52%,
    #3730a3 72%,
    #1e1b4b 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .layout-login .login-landing-actions {
    animation: none;
  }
  .layout-login .login-card-wrap--desktop,
  .layout-login .login-card--desktop {
    animation: none !important;
  }
  .layout-login .login-slogan--after-submit .login-slogan__accent {
    box-shadow: none;
  }
  .layout-login .login-slogan--overlay .login-slogan__accent {
    animation: none !important;
    box-shadow: none;
  }
  .layout-login .login-slogan__cursor {
    display: none !important;
  }
  .layout-login .login-slogan--fx,
  .layout-login .login-slogan--overlay.login-slogan--fx,
  .layout-login .login-slogan--fx .login-slogan__lead,
  .layout-login .login-slogan--fx .login-slogan__rest {
    animation: none !important;
    transform: none;
    will-change: auto;
  }
  .layout-login .login-slogan--fx .login-slogan__lead {
    background: none;
    -webkit-text-fill-color: unset;
    color: rgba(248, 250, 252, 0.98);
  }
  html:not(.dark) .layout-login .login-slogan--fx .login-slogan__lead {
    color: #1e1b4b;
  }
  .layout-login .login-slogan--fx .login-slogan__rest {
    text-shadow: none;
    opacity: 1;
    filter: none;
    animation-delay: 0s;
  }
}

/* Flash yokken üst boşluk alanı kalksın — imza için dikey alan */
.login-flash-host:not(:has(.login-flash)) {
  display: none;
}

/* Mobil: uzun flash / küçük ekranda yalnızca ana sütun kayar */
@media (max-width: 639px) {
  .layout-login .login-body-col {
    min-height: 0;
  }
}

/* Kart logosu — logoyu saran sabit gökkuşağı çerçeve (dönüş yok) */
.login-card-logo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  isolation: isolate;
}
.login-card-logo-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  z-index: 0;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  border-radius: 1.05rem;
  background: conic-gradient(
    from 210deg,
    #6366f1,
    #c084fc,
    #22d3ee,
    #f472b6,
    #818cf8,
    #38bdf8,
    #6366f1
  );
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 4px;
  box-sizing: border-box;
}
.login-card-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: auto;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border-radius: 0.65rem;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 42%,
    transparent 58%,
    rgba(255, 255, 255, 0.06) 100%
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0.85;
}
.login-card-logo {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 16px rgba(129, 140, 248, 0.55)) drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
}
@media (prefers-reduced-motion: reduce) {
  .login-card-logo-wrap::before {
    background: linear-gradient(135deg, #6366f1, #a855f7, #22d3ee);
  }
  .login-card-logo-wrap::after {
    opacity: 0;
  }
}
.login-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: login-float 18s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .login-orb {
    animation: none;
  }
}
.login-orb--a {
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  left: -5%;
  top: 10%;
  background: #6366f1;
  animation-delay: 0s;
}
.login-orb--b {
  width: min(36vw, 320px);
  height: min(36vw, 320px);
  right: -8%;
  top: 25%;
  background: #a855f7;
  animation-delay: -6s;
}
.login-orb--c {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  left: 30%;
  bottom: -15%;
  background: #0ea5e9;
  opacity: 0.25;
  animation-delay: -12s;
}
@keyframes login-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(12px, -18px) scale(1.05);
  }
  66% {
    transform: translate(-16px, 10px) scale(0.98);
  }
}

/*
 * Üst bar: Notla / Menü — sistem saati ve sinyal simgeleriyle çakışmasın.
 * Android Chrome’da safe-area-inset-top sık sıfır kalır; bu yüzden güvenli minimum (clamp).
 */
.layout-app .app-topbar .safe-top,
.layout-admin .admin-header-inner.safe-top {
  padding-top: max(3rem, calc(constant(safe-area-inset-top, 0px) + 0.85rem));
  padding-top: max(3rem, calc(env(safe-area-inset-top, 0px) + 0.85rem));
}
@media (display-mode: standalone), (display-mode: fullscreen) {
  .layout-app .app-topbar .safe-top,
  .layout-admin .admin-header-inner.safe-top {
    padding-top: max(3.35rem, calc(constant(safe-area-inset-top, 0px) + 1rem));
    padding-top: max(3.35rem, calc(env(safe-area-inset-top, 0px) + 1rem));
  }
}
@media (min-width: 1024px) {
  .layout-app .app-topbar .safe-top,
  .layout-admin .admin-header-inner.safe-top {
    padding-top: max(0.65rem, calc(constant(safe-area-inset-top, 0px) + 0.2rem));
    padding-top: max(0.65rem, calc(env(safe-area-inset-top, 0px) + 0.2rem));
  }
}
.safe-bottom {
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
}
.pb-safe {
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}
.note-content { word-break: break-word; overflow-wrap: anywhere; }
.note-editor-area ul { list-style: disc; padding-left: 1.25rem; }
.note-editor-area ol { list-style: decimal; padding-left: 1.25rem; }
.note-editor-title-input { color: #fff; caret-color: #c4b5fd; }

/* Note cards */
.note-card {
  -webkit-tap-highlight-color: transparent;
  min-height: 120px;
}
.note-card-title { word-break: break-word; }
.note-card-body  { word-break: break-word; }

/* List view */
.view-list .note-card { min-height: 68px; }

/* Uniform image heights */
.note-card img { display: block; }

/* Scrollbar thin */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }
