/* Giriş ekranı — fiber damar renk kodundan esinlenen düzen.
   Renkler: kanal laciverti, 4 hizmet damarı (mavi/turuncu/yeşil/kırmızı), uygulama turkuazı. */
#login.login-screen {
  --duct: #0d2235;
  --duct-2: #12304a;
  --paper: #f5f7fa;
  --ink: #13202f;
  --muted: #5b6b7d;
  --line: #d3dbe4;
  --brand: #14b8a6;
  --brand-ink: #04332d;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: left;
  padding: 0;
  background: var(--paper);
}
#login.login-screen.hidden { display: none !important; }

/* Sol / üst: kanal zemini ve damarlar */
.login-art {
  position: relative;
  background:
    radial-gradient(120% 90% at 0% 0%, var(--duct-2) 0%, transparent 60%),
    var(--duct);
  color: #e8eef5;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 36px 0 32px 44px;
  overflow: hidden;
}
.login-brand { display: flex; align-items: baseline; gap: 12px; }
.login-wordmark {
  font-size: 30px;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.5px;
  color: #fff;
}
.login-product { font-size: 15px; font-weight: 500; color: #9fb3c8; }
.login-art svg { width: 100%; height: auto; align-self: center; max-height: 62vh; display: block; }
.login-tagline { margin: 0; font-size: 16px; color: #9fb3c8; max-width: 34ch; line-height: 1.5; }

/* Damarlar */
.strand { fill: none; stroke-width: 5; stroke-linecap: round; }
.strand-pulse { fill: none; stroke-width: 5; stroke-linecap: round; stroke: #fff; stroke-dasharray: 18 900; stroke-dashoffset: 918; opacity: .9; animation: login-pulse 3.6s cubic-bezier(.45, 0, .55, 1) infinite; }
.strand-pulse.p2 { animation-delay: .5s; }
.strand-pulse.p3 { animation-delay: 1s; }
.strand-pulse.p4 { animation-delay: 1.5s; }
.trunk { fill: none; stroke: #27425e; stroke-width: 16; stroke-linecap: round; }
.trunk-core { fill: none; stroke: #dce6f0; stroke-width: 3; stroke-dasharray: 2 8; }
.svc-icon { fill: none; stroke: #e8eef5; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.svc-ring { stroke-width: 2.5; }
.svc-label { fill: #e8eef5; font-size: 19px; font-weight: 600; font-family: inherit; }
.svc-note { fill: #8ea4ba; font-size: 13.5px; font-weight: 400; font-family: inherit; }
.splice { fill: var(--duct); stroke: var(--brand); stroke-width: 3; }
@keyframes login-pulse { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .strand-pulse { animation: none; opacity: 0; } }

/* Sağ / alt: form */
.login-panel { display: grid; place-items: center; padding: 40px 28px; }
#login .login-form {
  width: min(380px, 100%);
  display: grid;
  gap: 0;
  color: var(--ink);
}
#login .login-form h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.4px; margin: 0; color: var(--ink); }
#login .login-sub { margin: 6px 0 26px; color: var(--muted); font-size: 15px; }
#login .login-form > label { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
#login .login-form input[type="email"],
#login .login-form input[type="password"],
#login .login-form input[type="text"] {
  width: 100%;
  margin: 0 0 16px;
  padding: 13px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
#login .login-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #14b8a62e; }
#login .login-pass { position: relative; }
#login .login-pass input { padding-right: 78px; }
#login #togglePassword {
  position: absolute; right: 6px; top: 6px;
  width: auto; height: 36px; margin: 0; padding: 0 12px;
  border: 0; border-radius: 7px;
  background: #eef2f6; color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; min-width: 66px; text-align: center;
}
#login .login-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -2px 0 22px; }
#login .login-remember { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); margin: 0; cursor: pointer; }
#login .login-remember input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
#login .login-link {
  width: auto; margin: 0; padding: 4px 0;
  border: 0; background: none;
  color: #0f766e; font: inherit; font-size: 14px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
#login .login-submit {
  width: 100%; margin: 0;
  padding: 15px 18px;
  border: 0; border-radius: 10px;
  background: var(--brand); color: var(--brand-ink);
  font: inherit; font-size: 17px; font-weight: 700;
  cursor: pointer;
}
#login .login-submit:hover { background: #10a594; }
#login .login-form button:focus-visible { outline: 3px solid #0f766e; outline-offset: 2px; }
#login .login-error { min-height: 22px; margin-top: 14px; font-size: 14px; color: #b42318; text-align: left; }

/* Telefon: çizim üstte bant, form altta */
@media (max-width: 860px) {
  #login.login-screen { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-art { padding: 22px 0 18px 20px; gap: 6px; }
  .login-wordmark { font-size: 24px; }
  .login-product { font-size: 14px; }
  .login-art svg { max-height: none; margin-top: 6px; }
  .login-tagline { display: none; }
  .svc-note { display: none; }
  .svc-label { font-size: 23px; transform: translateY(8px); }
  .login-panel { place-items: start center; padding: 0 18px 32px; margin-top: -18px; }
  #login .login-form { background: var(--paper); border-radius: 18px 18px 0 0; padding: 24px 4px 0; width: min(420px, 100%); }
  #login .login-form h1 { font-size: 26px; }
  #login .login-sub { margin-bottom: 20px; }
}

/* Giriş ekranındayken sohbet ve bildirim butonları görünmesin (çıkış yapınca kalıyordu) */
body:has(#login:not(.hidden)) #chat,
body:has(#login:not(.hidden)) #notifyFab { display: none !important; }

/* Yeni interland logosu (çizgi yazı, SVG) */
.login-brand { align-items: flex-end; }
.login-art .login-wordmark svg.brand-wm { width: auto; height: 34px; max-height: none; margin: 0; display: block; align-self: auto; }
.login-product { padding-bottom: 2px; }
@media (max-width: 860px) {
  .login-art .login-wordmark svg.brand-wm { height: 27px; margin: 0; }
}
header h1.app-brand { display: flex; align-items: center; gap: 9px; margin: 0; }
header h1.app-brand svg.brand-wm { height: 22px; width: auto; display: block; flex-shrink: 0; }
header h1.app-brand span { color: #172033; font-weight: 600; }
@media (max-width: 430px) {
  header h1.app-brand svg.brand-wm { height: 18px; }
}
