:root {
  /* Kimlik sayfalari (giris/kayit/sifre) sabit acik tasarimdir; ama renk
     DEGERLERI burada yeniden tanimlanmaz, site.css'teki merkezi
     --merlab-* token'larindan turer. Aksi halde palet 5 ayri yerde
     yasar ve degisiklikte biri unutulur.
     site.css bu bloktan ONCE yuklenir (_Layout satir 51 vs Styles bolumu),
     bu yuzden var() burada cozulur. */
  --official-navy: var(--merlab-lacivert);
  --official-navy-dark: #00122e;   /* yalnizca bu sayfalarin hero gradyaninin dip tonu */
  --official-mavi: var(--merlab-mavi);
  --official-gold: var(--merlab-altin);
  --official-gold-light: var(--merlab-altin-acik);
}

html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--phoenix-body-bg, #ffffff);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

.portal-wrapper {
  flex: 1 0 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
}

.portal-row {
  flex: 1 0 auto;
  min-height: 100%;
  width: 100%;
  margin: 0;
}

.brand-side {
  background: var(--official-navy) url('../img/top_bg.png') repeat center center;
  background-size: cover;
  color: white;
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.brand-container-box {
  display: flex;
  align-items: center;
  margin-bottom: clamp(20px, 3vh, 40px);
  width: 100%;
}

.brand-image {
  height: clamp(65px, 8vw, 160px);
  max-height: 160px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name-ktu {
  font-weight: 900;
  font-size: clamp(0.95rem, 1.2vw, 1.35rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #00426a;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.brand-name-birim {
  font-size: clamp(0.72rem, 0.85vw, 0.95rem);
  font-weight: 800;
  color: #00426a;
  margin-bottom: 0;
  letter-spacing: 0.02em;
}

.brand-kisaltma-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-left: 4px solid #00426a;
  color: #00426a;
  font-weight: 900;
  font-size: clamp(1rem, 1.2vw, 1.45rem);
  padding-left: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.header-yokak-box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-yokak-box img {
  height: clamp(65px, 8vw, 160px);
  max-height: 160px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
  transition: transform 0.2s ease;
}

.header-yokak-box img:hover {
  transform: scale(1.04);
}

.info-glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  min-height: 120px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-glass-card p {
  color: #00426a !important;
  font-weight: 600;
}

.form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 48px;
  min-width: 0;
  background-color: #f8fafc;
}

.form-content-box {
  max-width: 560px;
  width: 100%;
  min-width: 0;
  margin: auto;
}

.portal-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px -15px rgba(0, 40, 85, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: portalCardEntrance 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Giriş kartıyla aynı açılış: giriş ↔ kayıt geçişinde efekt kaybolmasın. */
@keyframes portalCardEntrance {
  0% { opacity: 0; transform: translateY(24px) scale(0.98); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.form-icon-container {
  position: relative;
}

.form-icon-input {
  padding-left: 3.25rem !important;
}

.form-icon-container .form-icon {
  position: absolute;
  top: 50%;
  left: 1.15rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: #94a3b8;
}

.form-control {
  border-radius: 12px;
  padding-top: 11px;
  padding-bottom: 11px;
}

.form-control:focus {
  border-color: var(--official-navy);
  box-shadow: 0 0 0 0.25rem rgba(0, 40, 85, 0.15);
}

.btn-official-primary {
  background: linear-gradient(135deg, var(--official-navy) 0%, var(--official-mavi) 100%);
  color: #ffffff;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 13px;
  box-shadow: 0 6px 20px rgba(0, 40, 85, 0.3);
  transition: background-color 180ms ease, box-shadow 180ms ease;
  min-height: 48px;
}

.btn-official-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--official-navy-dark) 0%, var(--official-navy) 100%);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 40, 85, 0.4);
}

.republic-footer {
  flex-shrink: 0;
  background-color: #2d2d2d;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  color: #e2e8f0;
  font-size: 12px;
  text-align: center;
  width: 100%;
}

@media (max-width: 1399.98px) {
  .brand-side {
    padding: 20px 24px;
  }
  .brand-image,
  .header-yokak-box img {
    height: clamp(60px, 7vw, 130px);
    max-height: 130px;
  }
}

@media (max-width: 1199.98px) {
  .brand-side {
    padding: 16px 18px;
  }
  .brand-image,
  .header-yokak-box img {
    height: clamp(52px, 6vw, 95px);
    max-height: 95px;
  }
  .brand-kisaltma-vertical {
    display: none !important;
  }
}
@media (max-width: 991.98px) {
  .form-side {
    justify-content: flex-start;
    padding: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef4fa 100%);
  }

  .form-content-box {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .portal-form-card {
    padding: 20px 16px;
    border-radius: 16px;
    box-shadow: 0 12px 28px -16px rgba(0, 40, 85, 0.3);
  }

  .republic-footer {
    padding: 12px 16px;
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .form-side { padding: 10px; }
  .portal-form-card { padding: 18px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-form-card,
  .btn-official-primary {
    animation: none;
    transition: none;
  }
}


/* Reserve space for live feedback and keep touch targets comfortable. */
.register-form .form-control { min-height: 48px; font-size: 16px; }
.register-form .form-label { text-transform: none; }
.register-form .form-text { line-height: 20px; }
.register-form .sifre-eslesme-bilgi { min-height: 20px; margin-bottom: 0; }
.register-form .sifre-goster-btn { right: 4px; width: 40px; height: 40px; }
.register-form .sifre-goster-btn:focus-visible,
.btn-official-primary:focus-visible,
.register-login-link:focus-visible { outline: 3px solid var(--official-mavi); outline-offset: 3px; }
.register-form .form-control.is-valid,
.register-form .form-control.is-invalid { padding-right: 4.25rem !important; }
.register-mobile-logos img { height: 52px; width: auto; object-fit: contain; }
.register-mobile-logos .vr { height: 38px; align-self: center; }
.register-login-link { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; min-height: 44px; }
.register-footer-note { max-width: 440px; margin-inline: auto; line-height: 1.6; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .form-side { padding: 32px 24px; }
  .portal-form-card { padding: 28px; }
}

/* Giriş ve kayıt aynı çerçeve: kart aynı boy, kaydırma çubuğunun yeri hep ayrılır; sayfalar arasında
   geçerken kart ve sol panel kaymaz. */
html { scrollbar-gutter: stable; }
@media (min-width: 992px) {
  .portal-form-card { min-height: 566px; }
  /* Logo sayfa boyuna değil pencereye göre ortalanır: iki sayfanın kart altı içeriği farklı uzunlukta. */
  .brand-side { justify-content: flex-start; padding-top: 0 !important; padding-bottom: 0 !important; }
  .brand-side > div { position: sticky; top: 0; height: min(100%, 100vh); padding-block: 20px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
}
