/* Giriş ekranı (main.js Login), after the Acıbadem GPT sign-in page: the brand panel on the left with its big letter,
   grid and glows, the sign-in card on the right, the theme in the corner. Colours: theme.css --login-* tokens (light
   and dark); the motion stops under prefers-reduced-motion. Below 1025px the panel becomes the card's backdrop. */
.lg { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 0.72fr);
  overflow: hidden; color: var(--text);
  background: radial-gradient(circle at 18% 18%, var(--login-glow), transparent 32%),
    linear-gradient(135deg, var(--login-bg) 0%, var(--login-bg-2) 55%, var(--login-bg) 100%); }
.lg::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, var(--login-grid) 1px, transparent 1px), linear-gradient(0deg, var(--login-grid) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 36% 44%, black, transparent 68%); mask-image: radial-gradient(circle at 36% 44%, black, transparent 68%); }

/* ---------- the brand panel */
.lg-hero { position: relative; z-index: 0; isolation: isolate; min-width: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 96px clamp(40px, 6vw, 96px) 96px; overflow: hidden; }
.lg-hero::before { content: "L"; position: absolute; z-index: -1; left: clamp(150px, 27vw, 350px); top: 54%;
  transform: translate(-50%, -50%) scaleY(1.12); font-size: clamp(460px, 52vw, 760px); font-weight: 860; line-height: 0.82;
  color: var(--login-letter); pointer-events: none; user-select: none; animation: lg-letter 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.lg-hero::after { content: ""; position: absolute; z-index: -1; inset: -12%; pointer-events: none;
  background: radial-gradient(circle at 30% 48%, var(--login-glow), transparent 36%), radial-gradient(circle at 74% 16%, var(--login-glow-2), transparent 30%);
  animation: lg-drift 16s ease-in-out infinite alternate; }
.lg-copy { display: flex; flex-direction: column; gap: 22px; max-width: min(680px, 100%); }
.lg-brand { margin: 0; font-size: clamp(26px, 2.8vw, 44px); font-weight: 520; line-height: 1; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink); }
.lg-brand span { font-weight: 760; letter-spacing: 0.16em; color: var(--login-accent); }
.lg-copy h1 { margin: 0; font-size: clamp(44px, 5vw, 80px); font-weight: 820; line-height: 1.03; letter-spacing: -0.025em; color: var(--ink);
  text-wrap: balance; }
.lg-lead { margin: 0; max-width: 600px; font-size: clamp(18px, 1.65vw, 26px); font-weight: 560; line-height: 1.3; color: var(--text-2);
  text-wrap: pretty; }
.lg-foot { position: absolute; left: clamp(28px, 3.2vw, 44px); bottom: 30px; margin: 0; display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; color: var(--muted); }
.lg-foot i { width: 1px; height: 14px; background: var(--login-panel-line); }

/* ---------- the sign-in side */
.lg-panel { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding: 76px 32px 40px; border-left: 1px solid var(--login-panel-line);
  background: radial-gradient(circle at 50% 8%, var(--login-glow-2), transparent 38%), var(--login-panel); }
.lg-logo { width: 56px; height: 56px; flex: none; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--lime-ink); font-size: 27px; font-weight: 800; box-shadow: var(--login-logo-shadow); }
.lg-card { width: min(100%, 392px); display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 22px;
  background: linear-gradient(180deg, var(--login-card), var(--login-card-2)); border: 1px solid var(--login-card-line); border-radius: 16px;
  box-shadow: var(--login-card-shadow); }
.lg-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 4px; text-align: center; }
.lg-head h2 { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
.lg-head p { margin: 0; font-size: 14px; color: var(--muted); }

.lg-field { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px;
  align-content: center; align-items: center; height: 56px; padding: 0 8px 0 14px; border: 1px solid var(--login-field-line); border-radius: 12px;
  background: var(--login-field); cursor: text; transition: border-color 0.16s ease, box-shadow 0.16s ease; }
.lg-field:hover { border-color: var(--login-field-hover); }
.lg-field:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px var(--login-ring); }
.lg-field > svg.i { grid-row: 1 / 3; width: 19px; height: 19px; color: var(--login-accent); }
.lg-field label { grid-column: 2; font-size: 12px; font-weight: 600; line-height: 14px; color: var(--muted); cursor: text; }
.lg-field input { grid-column: 2; min-width: 0; width: 100%; height: 22px; padding: 0; border: 0; outline: 0; background: transparent;
  color: var(--ink); font-size: 15px; }
.lg-field input:-webkit-autofill, .lg-field input:-webkit-autofill:hover, .lg-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--login-field) inset; -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  transition: background-color 99999s ease-out; }
.lg-eye { grid-column: 3; grid-row: 1 / 3; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.lg-eye:hover { color: var(--ink); background: var(--veil); }
.lg-eye:focus-visible { outline: 2px solid var(--green); outline-offset: 0; }

.lg-msg { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--gray-bg);
  font-size: 13px; line-height: 18px; color: var(--text); }
.lg-msg.is-error { border-color: var(--login-error-line); background: var(--red-bg); color: var(--red-ink); }
.lg-submit { height: 52px; margin-top: 2px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--login-btn-line); border-radius: 12px; background: linear-gradient(180deg, var(--login-btn) 0%, var(--login-btn-2) 100%);
  color: var(--lime-ink); font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: var(--login-btn-shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease; }
.lg-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--login-btn-shadow-hover); }
.lg-submit:active:not(:disabled) { transform: none; }
.lg-submit:disabled { cursor: default; opacity: 0.8; }
.lg-submit:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lg-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: lg-spin 0.7s linear infinite; }
.lg-hint { margin: 2px 4px 0; font-size: 12.5px; line-height: 18px; color: var(--muted); text-align: center; text-wrap: pretty; }

.lg-theme { position: absolute; z-index: 2; top: max(18px, env(safe-area-inset-top, 0px)); right: max(18px, env(safe-area-inset-right, 0px)); }
.lg-theme .theme-toggle { background: var(--login-card); border-color: var(--login-card-line); box-shadow: var(--knob-shadow); }

/* ---------- motion: the copy and the card rise in, the letter settles, the glow drifts */
@keyframes lg-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lg-letter { from { opacity: 0; transform: translate(-50%, -46%) scaleY(1.12); } to { opacity: 1; transform: translate(-50%, -50%) scaleY(1.12); } }
@keyframes lg-drift { from { transform: translate3d(-2%, 1.5%, 0); } to { transform: translate3d(3%, -2%, 0); } }
@keyframes lg-spin { to { transform: rotate(360deg); } }
.lg-copy > * { animation: lg-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.lg-copy > :nth-child(2) { animation-delay: 0.08s; }
.lg-copy > :nth-child(3) { animation-delay: 0.16s; }
.lg-foot { animation: lg-rise 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both; }
.lg-logo { animation: lg-rise 0.7s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.lg-card { animation: lg-rise 0.8s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .lg-hero::before, .lg-hero::after, .lg-copy > *, .lg-foot, .lg-logo, .lg-card { animation: none; }
  .lg-field, .lg-submit { transition: none; }
}

/* ---------- tablet and phone: the brand panel stays behind the card as a backdrop */
@media (max-width: 1024px) {
  .lg { grid-template-columns: minmax(0, 1fr); }
  .lg-hero { position: absolute; inset: 0; padding: 0; opacity: 0.45; }
  .lg-copy, .lg-foot { display: none; }
  .lg-panel { min-height: 100vh; min-height: 100dvh; border-left: 0; background: transparent; padding: 76px 20px 32px; }
}
@media (max-width: 640px) {
  .lg-panel { gap: 18px; padding: 68px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
  .lg-card { padding: 22px 18px 18px; border-radius: 14px; }
  .lg-head h2 { font-size: 24px; }
  .lg-logo { width: 50px; height: 50px; font-size: 24px; border-radius: 14px; }
}
