/* =====================================================================
   KAPSÜL ZİHİNKÜPÜ · Giriş sayfası Bento teması (login-bento.css, v1.0)
   Yalnızca #loginView içini etkiler. Kaldırmak için index.html'deki
   bu dosyanın <link> satırını silmek yeterlidir.
   ===================================================================== */
#loginView {
  --lb-ink: #1D1B3A; --lb-muted: #55527A; --lb-line: #E6E2F5; --lb-acc: #5B3DF5; --lb-soft: #EFEBFF;
  font-family: 'Plus Jakarta Sans', var(--font-family, system-ui), system-ui, sans-serif;
  color: var(--lb-ink);
}
#loginView .login-container {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; justify-content: center;
  min-height: calc(100vh - 24px); padding: 12px 0; background: none;
}

/* ---------- sol sahne ---------- */
#loginView .lb-stage {
  flex: 1.25 1 520px; min-width: 0; position: relative; overflow: hidden; border-radius: 32px;
  background: #E9E3FF; min-height: 640px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
#loginView .lb-net { position: absolute; inset: 0; width: 100%; height: 100%; }
#loginView .lb-net g.lb-spin { transform-origin: 260px 260px; animation: lb-netspin 90s linear infinite; }
#loginView .lb-net circle { animation: lb-pulse 3.2s ease-in-out infinite; }
#loginView .lb-net circle:nth-child(2n) { animation-delay: -1.1s; }
#loginView .lb-net circle:nth-child(3n) { animation-delay: -2.2s; }
@keyframes lb-netspin { to { transform: rotate(360deg); } }
@keyframes lb-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
#loginView .lb-scene { position: relative; width: 200px; height: 200px; perspective: 900px; margin-bottom: 64px; }
#loginView .lb-cube { position: relative; width: 200px; height: 200px; transform-style: preserve-3d; animation: lb-spin 16s linear infinite; transition: filter .4s; }
@keyframes lb-spin { from { transform: rotateX(-20deg) rotateY(0); } to { transform: rotateX(-20deg) rotateY(360deg); } }
#loginView .lb-face {
  position: absolute; inset: 0; border-radius: 22px; border: 3px solid #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--lb-ink);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, .55);
}
#loginView .lb-face svg { width: 72px; height: 72px; fill: none; stroke: var(--lb-ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
#loginView .lb-f1 { transform: translateZ(100px); background: #CFF5E1; }
#loginView .lb-f2 { transform: rotateY(90deg) translateZ(100px); background: #CFE8FF; }
#loginView .lb-f3 { transform: rotateY(180deg) translateZ(100px); background: #FFD3C7; }
#loginView .lb-f4 { transform: rotateY(-90deg) translateZ(100px); background: #FFE7A3; }
#loginView .lb-f5 { transform: rotateX(90deg) translateZ(100px); background: #E4DBFF; }
#loginView .lb-f6 { transform: rotateX(-90deg) translateZ(100px); background: #E4DBFF; }
#loginView .lb-shadow {
  position: absolute; left: 50%; bottom: -58px; width: 170px; height: 26px; margin-left: -85px; border-radius: 50%;
  background: rgba(29, 27, 58, .22); filter: blur(8px); animation: lb-sh 4s ease-in-out infinite;
}
@keyframes lb-sh { 0%, 100% { transform: scale(1); } 50% { transform: scale(.8); opacity: .7; } }
#loginView .lb-lock {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 26px;
  background: var(--lb-acc); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.4);
  transition: opacity .3s, transform .35s cubic-bezier(.3, 1.6, .5, 1); box-shadow: 0 18px 30px -12px rgba(91, 61, 245, .7);
}
#loginView .lb-lock svg { width: 44px; height: 44px; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
#loginView:has(#loginPassword:focus) .lb-lock { opacity: 1; transform: scale(1); }
#loginView:has(#loginPassword:focus) .lb-cube { animation-play-state: paused; filter: saturate(.35) brightness(1.04); }
#loginView:has(#loginPassword:focus) .lb-shadow { animation-play-state: paused; }
#loginView .lb-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 46px; margin: 0; letter-spacing: -.5px; text-align: center; color: var(--lb-ink); }
#loginView .lb-sub { margin: 10px 0 0; font-size: 17px; color: var(--lb-muted); text-align: center; max-width: 380px; line-height: 1.5; padding: 0 16px; }

/* ---------- sağ kart ---------- */
#loginView .login-card.glass-panel {
  flex: 1 1 400px; max-width: 520px; align-self: center; background: #fff; border: 0; border-radius: 32px;
  padding: 40px; box-sizing: border-box; box-shadow: 0 30px 60px -40px rgba(29, 27, 58, .5);
  -webkit-backdrop-filter: none; backdrop-filter: none; text-align: left;
}
#loginView .login-header { margin-bottom: 24px; text-align: left; }
#loginView .login-logo, #loginView .login-header h2 { display: none; }
#loginView .login-header p {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 30px; line-height: 1.15; color: var(--lb-ink); margin: 0 0 6px;
}
#loginView .login-header::after { content: "E-posta ve şifrenle oturum aç."; display: block; color: var(--lb-muted); font-size: 15px; }
#loginView:has(#welcomeBackContainer[style*="block"]) .login-header { display: none; }

#loginView .login-form .form-group { margin-bottom: 16px; text-align: left; }
#loginView .login-form label { display: block; margin-bottom: 6px; color: var(--lb-ink); font-weight: 700; font-size: 13px; }
#loginView .login-form input {
  width: 100%; box-sizing: border-box; height: 50px; border-radius: 14px; border: 2px solid var(--lb-line); background: #fff;
  padding: 0 16px; font: 500 15px 'Plus Jakarta Sans', sans-serif; color: var(--lb-ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
#loginView .login-form input:focus { background: #fff; border-color: var(--lb-acc); box-shadow: 0 0 0 4px rgba(91, 61, 245, .15); }
#loginView .login-form input[type="checkbox"] { width: 18px !important; height: 18px; padding: 0; border: 0; accent-color: var(--lb-acc); box-shadow: none; }
#loginView .checkbox-group label { font-weight: 500; color: var(--lb-muted); font-size: 14px; }
#loginView .lb-pw { position: relative; }
#loginView .lb-pw input { padding-right: 56px; }
#loginView .lb-eye {
  position: absolute; right: 6px; top: 6px; width: 38px; height: 38px; border: 0; border-radius: 12px; background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
#loginView .lb-eye:hover { background: var(--lb-soft); }
#loginView .lb-eye svg { width: 22px; height: 22px; fill: none; stroke: var(--lb-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#loginView .lb-eye .lb-slash { transition: transform .25s, opacity .25s; transform-origin: 50% 50%; }
#loginView .lb-pw.shown .lb-slash { transform: scale(0); opacity: 0; }

#loginView .btn-primary {
  width: 100%; min-height: 54px; border: 0; border-radius: 16px; background: var(--lb-acc); color: #fff;
  font: 700 16px 'Plus Jakarta Sans', sans-serif; cursor: pointer; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 14px 24px -14px rgba(91, 61, 245, .9); display: flex; align-items: center; justify-content: center; gap: 10px;
}
#loginView .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 30px -14px rgba(91, 61, 245, .9); }
#loginView #loginBtn:disabled { opacity: .88; cursor: progress; transform: none; }
#loginView #loginBtn:disabled span::before {
  content: ""; display: inline-block; width: 18px; height: 18px; border-radius: 5px; background: #fff; margin-right: 10px;
  vertical-align: -3px; animation: lb-flip 1s linear infinite;
}
@keyframes lb-flip { from { transform: rotateX(0) rotateY(0); } to { transform: rotateX(360deg) rotateY(360deg); } }
#loginView .btn-secondary {
  width: 100%; min-height: 50px; border-radius: 16px; border: 2px solid var(--lb-line); background: #fff; color: var(--lb-ink);
  font: 600 15px 'Plus Jakarta Sans', sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background-color .2s;
}
#loginView .btn-secondary:hover { background: var(--lb-soft); }
#loginView .login-divider { margin: 20px 0; }
#loginView .login-divider::before, #loginView .login-divider::after { background: var(--lb-line); }
#loginView .login-divider span { color: var(--lb-muted); font-size: 12px; font-weight: 600; letter-spacing: 1px; }
#loginView .login-footer { margin-top: 18px; text-align: center; color: var(--lb-muted); font-size: 14px; }
#loginView .login-footer p { margin: 0; }
#loginView .login-footer a { color: var(--lb-acc); font-weight: 700; text-decoration: none; }
#loginView .login-footer a:hover { text-decoration: underline; }
#loginView .lb-shake { animation: lb-sk .5s; }
@keyframes lb-sk { 0%, 100% { transform: translateX(0); } 15% { transform: translateX(-9px); } 30% { transform: translateX(8px); } 45% { transform: translateX(-6px); } 60% { transform: translateX(5px); } 80% { transform: translateX(-2px); } }

/* ---------- portal kartları ---------- */
#loginView .lb-portals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 4px; }
#loginView .lb-portal {
  position: relative; overflow: hidden; border-radius: 22px; padding: 16px; box-sizing: border-box; min-height: 136px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--lb-ink);
  transition: transform .25s, box-shadow .25s;
}
#loginView .lb-portal:hover { transform: translateY(-5px); box-shadow: 0 22px 34px -26px rgba(29, 27, 58, .7); }
#loginView .lb-rota { background: #CFF5E1; }
#loginView .lb-analiz { background: #CFE8FF; }
#loginView .lb-portal b { display: block; font: 800 20px 'Bricolage Grotesque', sans-serif; }
#loginView .lb-portal small { display: block; font-size: 13px; color: var(--lb-muted); font-weight: 600; margin-top: 2px; }
#loginView .lb-arrow { position: absolute; right: 14px; bottom: 14px; width: 30px; height: 30px; border-radius: 10px; background: var(--lb-ink); display: flex; align-items: center; justify-content: center; }
#loginView .lb-arrow svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
#loginView .lb-portal:hover .lb-arrow svg { transform: translateX(3px); }
#loginView .lb-cal { width: 96px; display: flex; flex-direction: column; gap: 6px; }
#loginView .lb-cal i { height: 11px; border-radius: 6px; background: rgba(29, 27, 58, .1); position: relative; overflow: hidden; }
#loginView .lb-cal i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--lb-ink); width: 0; animation: lb-fillb 4.5s ease-in-out infinite; }
#loginView .lb-cal i:nth-child(1)::after { --w: 80%; }
#loginView .lb-cal i:nth-child(2)::after { --w: 55%; animation-delay: .3s; }
#loginView .lb-cal i:nth-child(3)::after { --w: 95%; animation-delay: .6s; }
@keyframes lb-fillb { 0% { width: 0; } 35%, 80% { width: var(--w); } 100% { width: 0; } }
#loginView .lb-chart { width: 104px; height: 60px; }
#loginView .lb-chart rect { transform-origin: bottom; transform-box: fill-box; animation: lb-grow 4s ease-in-out infinite; }
#loginView .lb-chart rect:nth-child(2) { animation-delay: .2s; }
#loginView .lb-chart rect:nth-child(3) { animation-delay: .4s; }
#loginView .lb-chart rect:nth-child(4) { animation-delay: .6s; }
#loginView .lb-chart rect:nth-child(5) { animation-delay: .8s; }
@keyframes lb-grow { 0% { transform: scaleY(0); } 30%, 80% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
#loginView .lb-chart path { stroke-dasharray: 240; animation: lb-draw 4s ease-in-out infinite; }
@keyframes lb-draw { 0% { stroke-dashoffset: 240; } 40%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 240; } }

/* ---------- tekrar hoş geldin ---------- */
#loginView #welcomeBackContainer { text-align: center; padding: 6px 0 4px; }
#loginView .lb-av {
  width: 88px; height: 88px; border-radius: 28px; background: var(--lb-acc); color: #fff; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; font: 800 36px 'Bricolage Grotesque', sans-serif;
  animation: lb-pop .7s cubic-bezier(.3, 1.6, .5, 1) both;
}
@keyframes lb-pop { from { transform: scale(.3) rotate(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }
#loginView #welcomeBackName { font: 800 30px/1.15 'Bricolage Grotesque', sans-serif; margin: 0 0 6px; color: var(--lb-ink); }
#loginView .lb-wb { margin: 0 0 20px; color: var(--lb-muted); font-size: 16px; }
#loginView .lb-tip { background: #E4DBFF; border-radius: 20px; padding: 16px 18px; text-align: left; margin-bottom: 20px; }
#loginView .lb-tip small { display: block; font-weight: 700; font-size: 11px; letter-spacing: .8px; color: var(--lb-acc); text-transform: uppercase; margin-bottom: 8px; }
#loginView .lb-rot { position: relative; height: 52px; }
#loginView .lb-rot p { position: absolute; inset: 0; margin: 0; font: 700 17px/1.3 'Bricolage Grotesque', sans-serif; color: var(--lb-ink); opacity: 0; animation: lb-rot 12s infinite; }
#loginView .lb-rot p:nth-child(2) { animation-delay: 4s; }
#loginView .lb-rot p:nth-child(3) { animation-delay: 8s; }
@keyframes lb-rot { 0% { opacity: 0; transform: translateY(10px); } 5%, 28% { opacity: 1; transform: none; } 33%, 100% { opacity: 0; transform: translateY(-10px); } }
#loginView #continueBtn { margin-bottom: 12px; }
#loginView #continueBtn svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
#loginView #continueBtn:hover svg { transform: translateX(4px); }
#loginView .lb-alt {
  width: 100%; min-height: 50px; border-radius: 16px; border: 2px solid var(--lb-line); background: #fff; color: var(--lb-ink);
  font: 600 15px 'Plus Jakarta Sans', sans-serif; cursor: pointer; transition: background-color .2s;
}
#loginView .lb-alt:hover { background: var(--lb-soft); }

/* ---------- küçük ekran ---------- */
@media (max-width: 900px) {
  #loginView .lb-stage { min-height: 420px; flex-basis: 100%; }
  #loginView .lb-scene { transform: scale(.72); margin-bottom: 30px; }
  #loginView .lb-title { font-size: 34px; }
  #loginView .login-card.glass-panel { padding: 28px 22px; flex-basis: 100%; max-width: 560px; }
  #loginView .login-header p { font-size: 26px; }
}
@media (max-width: 420px) { #loginView .lb-portals { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  #loginView .lb-cube, #loginView .lb-net g.lb-spin, #loginView .lb-net circle, #loginView .lb-shadow, #loginView .lb-av,
  #loginView .lb-cal i::after, #loginView .lb-chart rect, #loginView .lb-chart path, #loginView .lb-rot p, #loginView .lb-shake { animation: none; }
  #loginView .lb-cal i::after { width: var(--w); }
  #loginView .lb-chart path { stroke-dashoffset: 0; }
  #loginView .lb-rot p:first-child { opacity: 1; }
}
