/* YDYS Login Landing v6 — geniş, dengeli, referans padding */
:root {
  --lp-navy: #001b3d;
  --lp-navy-2: #0a2f5c;
  --lp-navy-line: #4a6f96;
  --lp-ink: #122033;
  --lp-muted: #64748b;
  --lp-line: #e6ebf0;
  --lp-paper: #ffffff;
  --lp-soft: #f4f6f9;
  --lp-gold: #c4a35a;
  --lp-gold-soft: #e8d9a8;
  --lp-err: #9f1239;
  --lp-serif: "Cormorant Garamond", Georgia, serif;
  --lp-sans: "Manrope", system-ui, sans-serif;
  --lp-pad: clamp(16px, 2.2vw, 36px);
  --lp-max: 1680px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.lp-body {
  font-family: var(--lp-sans);
  color: var(--lp-ink);
  background: var(--lp-paper);
  min-height: 100vh;
}

.lp-shell {
  width: 100%;
  max-width: var(--lp-max);
  margin: 0 auto;
  padding-left: var(--lp-pad);
  padding-right: var(--lp-pad);
}

/* —— Header —— */
.lp-top {
  background: #fff;
  border-bottom: 1px solid var(--lp-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.lp-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 16px var(--lp-pad);
}
.lp-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lp-brand-logo {
  width: 58px; height: 58px; border-radius: 12px; overflow: hidden;
  background: var(--lp-navy); display: grid; place-items: center; flex-shrink: 0;
}
.lp-brand-logo--custom { background: #fff; border: 1px solid var(--lp-line); }
.lp-brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.lp-brand-logo--default img { filter: brightness(0) invert(1); padding: 10px; }
.lp-brand-text h1 {
  font-family: var(--lp-serif);
  font-size: clamp(1.45rem, 1.8vw, 1.7rem); font-weight: 600; color: var(--lp-navy); line-height: 1.15;
}
.lp-brand-text p { font-size: 0.92rem; color: var(--lp-muted); margin-top: 4px; font-weight: 550; }

.lp-top .lang-switcher--login { display: inline-flex; gap: 6px; }
.lp-top .lang-opt {
  font-size: 11px; font-weight: 700; padding: 7px 11px; border-radius: 8px;
  text-decoration: none; color: var(--lp-muted); border: 1px solid var(--lp-line); background: #fff;
}
.lp-top .lang-opt.lang-active { background: var(--lp-navy); color: #fff; border-color: var(--lp-navy); }

/* —— Hero band: foto + giriş —— */
.lp-hero-band {
  background: var(--lp-soft);
  border-bottom: 1px solid var(--lp-line);
  padding: 28px 0 32px;
}
.lp-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.85fr);
  gap: clamp(18px, 2vw, 28px);
  align-items: stretch;
  min-height: 480px;
}

.lp-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 480px;
  background: var(--lp-navy);
  box-shadow: 0 18px 42px rgba(0, 27, 61, 0.12);
}
.lp-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  display: block;
}
.lp-visual::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,27,61,0.35) 0%, rgba(0,27,61,0.12) 38%, rgba(0,27,61,0.78) 100%);
  z-index: 1;
}
.lp-visual-copy {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 2;
  width: min(92%, 34rem);
  padding: 28px 22px 32px;
  color: #fff;
  text-align: center;
}
.lp-eyebrow {
  display: none;
}
.lp-visual-copy h2 {
  font-family: var(--lp-serif);
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  font-weight: 600; line-height: 1.22;
  margin: 0 auto 12px;
  max-width: 22ch;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.lp-lead {
  font-size: 0.9rem; line-height: 1.55;
  color: rgba(255,255,255,0.9);
  margin: 0 auto;
  max-width: 36rem; font-weight: 500;
  text-shadow: 0 1px 10px rgba(0,0,0,0.25);
}
.lp-photo-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 25%, rgba(196,163,90,0.28), transparent 50%),
    linear-gradient(145deg, #001b3d 0%, #0a3a6e 100%);
  display: none;
}
.lp-visual--noimg .lp-photo-fallback { display: block; }
.lp-visual--noimg img { display: none; }

.lp-hero-login {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.login-card {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  padding: 36px 34px 28px;
  box-shadow: 0 20px 48px rgba(0, 27, 61, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-card[data-portal="student"] { border-color: #0ea5e9; box-shadow: 0 20px 48px rgba(14, 165, 233, 0.14); }
.login-card[data-portal="assistant"] { border-color: #2563eb; box-shadow: 0 20px 48px rgba(37, 99, 235, 0.14); }
.login-card[data-portal="professor"] { border-color: #7c3aed; box-shadow: 0 20px 48px rgba(124, 58, 237, 0.14); }
.login-card[data-portal="bolum-sekreter"] { border-color: #0d9488; box-shadow: 0 20px 48px rgba(13, 148, 136, 0.14); }
.login-card[data-portal="ogrenci-isleri"] { border-color: #d97706; box-shadow: 0 20px 48px rgba(217, 119, 6, 0.14); }
.login-card[data-portal="admin"] { border-color: #1e3a5f; box-shadow: 0 20px 48px rgba(30, 58, 95, 0.16); }
.login-header { margin-bottom: 18px; text-align: left; }
.login-tooth-img { width: 44px; height: 44px; object-fit: contain; margin-bottom: 10px; display: block; }
.login-header h2 {
  font-family: var(--lp-serif); font-size: 1.85rem; font-weight: 600;
  color: var(--lp-navy); margin-bottom: 4px;
}
.login-header p { font-size: 0.9rem; color: var(--lp-muted); }

/* Uyarılar — yeşil yok, lacivert / nötr */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 12px; font-size: 0.86rem; margin-bottom: 14px; line-height: 1.45;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; fill: currentColor; }
.alert-error {
  background: #fff1f2; color: var(--lp-err); border: 1px solid #fecdd3;
}
.alert-success {
  background: #eef3f8; color: var(--lp-navy); border: 1px solid #c9d6e4;
}

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 0.76rem; font-weight: 700; color: var(--lp-navy);
  margin-bottom: 6px; letter-spacing: 0.02em;
}
.input-wrapper { position: relative; }
.input-wrapper input {
  width: 100%; padding: 13px 44px 13px 14px;
  border: 1px solid var(--lp-line); border-radius: 12px;
  font: inherit; font-size: 0.95rem; background: var(--lp-soft); color: var(--lp-ink);
}
.input-wrapper input:focus {
  outline: none; border-color: var(--lp-navy);
  box-shadow: 0 0 0 3px rgba(0, 27, 61, 0.12); background: #fff;
}
.input-wrapper > svg {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; fill: #94a3b8; pointer-events: none;
}
.input-wrapper--select { position: relative; }
.login-abd-select {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--lp-line); border-radius: 12px;
  font: inherit; font-size: 0.95rem; background: var(--lp-soft); color: var(--lp-ink);
  appearance: auto; cursor: pointer;
}
.login-abd-select:focus {
  outline: none; border-color: var(--lp-navy);
  box-shadow: 0 0 0 3px rgba(0, 27, 61, 0.12); background: #fff;
}
.password-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; padding: 4px; cursor: pointer; z-index: 1;
}
.password-toggle svg { width: 18px; height: 18px; fill: #94a3b8; display: block; }
.input-wrapper:has(.password-toggle) > svg:not(#eyeIcon) { display: none; }

.form-options {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; margin: 4px 0 16px; font-size: 0.84rem;
}
.remember-me { display: inline-flex; align-items: center; gap: 8px; color: var(--lp-muted); cursor: pointer; }
.forgot-link { color: var(--lp-navy); font-weight: 650; text-decoration: none; }
.forgot-link:hover { color: var(--lp-gold); }

.btn-login {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 18px; border: 0; border-radius: 12px;
  background: var(--lp-navy); color: #fff; font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer;
}
.btn-login:hover { background: var(--lp-navy-2); }
.btn-login svg { width: 18px; height: 18px; fill: currentColor; }

.login-footer {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--lp-line); text-align: center;
}
.login-footer p { font-size: 0.74rem; color: var(--lp-muted); line-height: 1.55; }
.login-footer a { color: var(--lp-navy); font-weight: 700; text-decoration: none; }

/* —— Sections —— */
.lp-section {
  padding: 40px 0 8px;
}
.lp-section-title {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lp-navy);
  margin-bottom: 6px;
}
.lp-section-title::after {
  content: "";
  display: block;
  width: 48px; height: 2px;
  background: var(--lp-gold);
  margin: 12px auto 28px;
}

.lp-offers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.lp-offer {
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  padding: 28px 22px 24px;
  text-align: center;
  cursor: pointer;
  font: inherit; color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  min-height: 180px;
}
.lp-offer:hover {
  border-color: rgba(0, 27, 61, 0.22);
  box-shadow: 0 16px 36px rgba(0, 27, 61, 0.08);
  transform: translateY(-2px);
}
.lp-offer--empty {
  cursor: default;
  pointer-events: none;
  opacity: 0.72;
  background: #f8fafc;
}
.lp-offer--empty:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--lp-line);
}
.lp-offer--empty p { min-height: 1.2em; }
.lp-offer-icon {
  width: 48px; height: 48px; margin: 0 auto 14px;
  color: var(--lp-navy);
  display: grid; place-items: center;
}
.lp-offer-icon svg {
  width: 30px; height: 30px;
  stroke: currentColor; fill: none; stroke-width: 1.55;
  stroke-linecap: round; stroke-linejoin: round;
}
.lp-offer h3 {
  font-size: 0.95rem; font-weight: 750; color: var(--lp-navy);
  margin-bottom: 8px; line-height: 1.3;
}
.lp-offer p {
  font-size: 0.82rem; color: var(--lp-muted); line-height: 1.5;
}

/* —— Duyurular: carousel —— */
.announcements {
  background: var(--lp-soft);
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  padding: 24px 24px 20px;
  width: 100%;
}
.announcements-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px;
}
.announcements-header-left {
  display: flex; align-items: center; gap: 10px;
}
.announcements-header svg { width: 20px; height: 20px; fill: var(--lp-navy); }
.announcements-header h3 {
  font-size: 0.95rem; font-weight: 750; color: var(--lp-navy);
}
.ann-nav {
  display: inline-flex; align-items: center; gap: 8px;
}
.ann-nav-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--lp-line); background: #fff;
  color: var(--lp-navy); cursor: pointer;
  display: grid; place-items: center;
  transition: border-color 0.15s, background 0.15s;
}
.ann-nav-btn:hover { border-color: var(--lp-navy); background: #f8fafc; }
.ann-nav-btn svg { width: 18px; height: 18px; fill: currentColor; }
.ann-nav-dots {
  font-size: 0.75rem; font-weight: 650; color: var(--lp-muted);
  min-width: 3.2rem; text-align: center;
}
.announcement-viewport {
  overflow: hidden;
  width: 100%;
  height: 220px;
}
.announcement-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.45s ease;
  will-change: transform;
}
.announcement-item {
  flex: 0 0 auto;
  width: 100%;
  min-height: 96px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 0 14px 14px 0;
  border: 1px solid var(--lp-line);
  border-left: 3px solid var(--lp-navy);
  box-sizing: border-box;
}
.announcement-item.success { border-left-color: var(--lp-gold); }
.announcement-item.warning { border-left-color: var(--lp-gold); }
.announcement-item.info { border-left-color: var(--lp-navy); }
.announcement-item h4 { font-size: 0.9rem; font-weight: 700; color: var(--lp-navy); margin-bottom: 4px; }
.announcement-item p { font-size: 0.84rem; color: var(--lp-muted); line-height: 1.5; }
.announcement-item .time { font-size: 0.72rem; color: #94a3b8; margin-top: 8px; }
.announcement-photo { margin: 0 0 10px; border-radius: 10px; overflow: hidden; background: #f1f5f9; }
.announcement-photo img { display: block; width: 100%; max-height: 140px; object-fit: cover; }

.lp-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.lp-section--demo {
  padding-top: 28px;
  padding-bottom: 8px;
}
.demo-login-form { margin: 0; }
.lp-demo-pick {
  margin: -4px 0 16px;
  font-size: 0.88rem;
  color: var(--lp-muted);
  text-align: center;
}
.role-btn {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--lp-line);
  background: #fff;
  font: inherit; font-size: 0.9rem; font-weight: 700;
  color: var(--lp-navy); cursor: pointer; text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.role-btn:hover {
  border-color: var(--lp-navy);
  box-shadow: 0 10px 24px rgba(0, 27, 61, 0.08);
}
.role-btn.is-selected {
  border-color: var(--lp-navy);
  background: #f4f7fb;
  box-shadow: 0 10px 24px rgba(0, 27, 61, 0.1);
}
.role-btn.student.is-selected { border-color: #0ea5e9; background: #f0f9ff; }
.role-btn.assistant.is-selected { border-color: #2563eb; background: #eff6ff; }
.role-btn.professor.is-selected { border-color: #7c3aed; background: #f5f3ff; }
.role-btn.bolum-sekreter.is-selected { border-color: #0d9488; background: #f0fdfa; }
.role-btn.ogrenci-isleri.is-selected { border-color: #d97706; background: #fffbeb; }
.role-btn.admin.is-selected { border-color: #1e3a5f; background: #eef2f7; }
.role-icon { display: inline-flex; color: var(--lp-navy); flex-shrink: 0; }
.role-icon svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; }
.role-btn.ders-sorumlusu .role-icon svg {
  fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.role-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.role-label { font-size: 0.9rem; font-weight: 750; color: var(--lp-navy); }
.role-email {
  font-size: 0.72rem; font-weight: 500; color: var(--lp-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lp-demo-hint {
  margin-top: 14px; text-align: center;
  font-size: 0.8rem; color: var(--lp-muted);
}
.lp-demo-hint strong { color: var(--lp-navy); }

/* —— Footer —— */
.lp-foot {
  background: var(--lp-navy);
  color: rgba(255, 255, 255, 0.88);
  padding: 36px var(--lp-pad) 32px;
  margin-top: 40px;
  text-align: center;
}
.lp-foot-copy {
  max-width: var(--lp-max);
  margin: 0 auto;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lp-foot-copy a {
  color: var(--lp-gold-soft);
  text-decoration: none;
  font-weight: 700;
}
.lp-foot-copy a:hover { text-decoration: underline; }
.lp-foot-sub {
  margin-top: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

@media (max-width: 1200px) {
  .lp-stage { grid-template-columns: 1fr 1fr; min-height: 500px; }
  .lp-visual { min-height: 500px; }
}
@media (max-width: 900px) {
  .lp-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .lp-visual { min-height: 300px; order: 2; }
  .lp-hero-login { order: 1; }
  .lp-offers { grid-template-columns: 1fr 1fr; }
  .lp-shortcuts { grid-template-columns: 1fr 1fr; }
  .announcement-viewport { height: 118px; }
}
@media (max-width: 560px) {
  .lp-offers, .lp-shortcuts { grid-template-columns: 1fr; }
  .form-options { flex-direction: column; align-items: flex-start; }
  .login-card { padding: 24px 18px 20px; }
}

/* Şifre sıfırlama */
.lp-reset-shell {
  display: flex;
  justify-content: center;
  padding: 40px 0 64px;
}
.login-card--reset {
  width: 100%;
  max-width: 440px;
}
.lp-reset-demo-hint {
  font-size: 0.82rem;
  color: var(--lp-muted);
  line-height: 1.5;
  margin: 0 0 8px;
}
.lp-reset-demo-link {
  margin: 0 0 16px;
  word-break: break-all;
  font-size: 0.88rem;
}
.lp-reset-demo-link a { color: var(--lp-navy); font-weight: 700; }
