/* ============================================================
   MCBÜ SSO — universite modülü görsel tema
   Sadece görsel; işleyiş (form alanları, name/id, JS) değişmedi.
   Public Sans + kart tabanlı düzen, mockup ile uyumlu.
   ============================================================ */

/* ---- Public Sans (yerel barindirma, OFL-1.1) ----
   Degisken font: tek dosya 100-900 agirlik araligini kapsar.
   Dosyalar: public/assets/fonts/ ; bu CSS public/assets/css/ altinda
   oldugu icin yol ../fonts/ seklindedir. Dis kaynak (Google Fonts)
   KULLANILMAZ.                                                      */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/3e1d2bc49b345b99f3c05a5e203fe3f3b408d8f8.woff2") format("woff2-variations"),
       url("../media/3e1d2bc49b345b99f3c05a5e203fe3f3b408d8f8.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/3b12b08403b49e31dc3079509130fe135a199f8d.woff2") format("woff2-variations"),
       url("../media/3b12b08403b49e31dc3079509130fe135a199f8d.woff2") format("woff2");
}

:root {
  --mcbu-ink:        #17222E;
  --mcbu-ink-soft:   #2C4553;
  --mcbu-muted:      #5B6975;
  --mcbu-label:      #41505C;
  --mcbu-line:       #D3DCE4;
  --mcbu-line-soft:  #EDF1F4;
  --mcbu-field-bg:   #F8FAFB;
  --mcbu-page-bg:    #E9EDF1;
  --mcbu-cyan:       #12A9CE;
  --mcbu-cyan-dk:    #0E93B4;
  --mcbu-cyan-ink:   #0E93B4;
  --mcbu-red:        #C62828;
  --mcbu-red-dk:     #A81C1C;
  --mcbu-placeholder:#9AA7B3;
}

/* ---- Sayfa / gövde ---- */
body {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--mcbu-ink);
  background: var(--mcbu-page-bg);
}

/* Kart içi tüm kutular padding'i genişliğe dahil etsin (mobil taşmayı önler) */
.mcbu-card,
.mcbu-card * { box-sizing: border-box; }

/* Header / footer'ın eski arka planlarını sadeleştir */
#header {
  background: transparent;
  background-image: none;
}
#footer {
  background: transparent;
}
#footer a,
#footer a:visited,
#footer a:active {
  color: var(--mcbu-muted) !important;
}

/* Header logosu */
.pure-img { height: 4.6rem; }
#header .logospace,
.logo-header { padding-top: 10px; }

/* İçerik alanını dikey ortala */
#content {
  padding: 0px 20px;
  display: flex;
  justify-content: center;
}
#content .wrap {
  display: flex;
  align-items: center; /*flex-start;*/
  justify-content: center;
  width: 100%;
  min-height: 100vh;      /* fallback */
  min-height: 100dvh;     /* mobil tarayıcı barlarını hesaba katar, taşmayı önler */
}

/* ============================================================
   Giriş kartı
   ============================================================ */
.mcbu-card {
  width: 860px;
  max-width: 100%;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 70px -30px rgba(11, 43, 77, .35);
  padding: 30px 48px 40px;
  position: relative;
}

/* Kart üst satırı: sol logo | sağ dil kutusu */
.mcbu-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

/* Logo */
.mcbu-brand img { height: 100px; width: auto; display: block; }

/* Dil kutusu (panel içi) */
.mcbu-langform { margin: 0; }
.mcbu-lang {
  height: 38px;
  border: 1px solid #DCE3EA;
  border-radius: 999px;
  padding: 0 34px 0 16px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #3B4A57;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%2393A1AD' d='M2 4l4 4 4-4z'/></svg>") no-repeat right 14px center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
}
.mcbu-lang:focus { border-color: var(--mcbu-cyan); box-shadow: 0 0 0 3px rgba(18,169,206,.15); }

/* Başlık bloğu */
.mcbu-title {
  text-align: center;
  margin-top: 22px;
}
.mcbu-title h1 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--mcbu-ink);
}
.mcbu-title p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--mcbu-muted);
  margin: 10px 0 0;
}
.mcbu-title p strong { color: var(--mcbu-ink-soft); font-weight: 700; }

/* ============================================================
   İki sütun: sol kimlik bilgileri | ayraç (veya) | sağ e-Devlet
   ============================================================ */
.mcbu-cols {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 28px;
}
.mcbu-col-cred {
  flex: 1;
  padding-right: 52px;
  min-width: 0;
}
.mcbu-col-edevlet {
  flex: 1;
  padding-left: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

/* Ortadaki dikey "veya" ayracı */
.mcbu-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  align-self: stretch;
}
.mcbu-divider .line {
  flex: 1;
  width: 1px;
  background: #E4EAEF;
}
.mcbu-divider .word {
  font-size: 12px;
  color: #93A1AD;
  font-weight: 600;
}

/* Tek sütun (e-Devlet gizliyken) sol sütun tam genişlik ortalı */
.mcbu-cols.single .mcbu-col-cred {
  padding-right: 0;
  max-width: 380px;
  margin: 0 auto;
}

/* ============================================================
   Form alanları (pure-form üzerine binen görsel katman)
   ============================================================ */
.mcbu-card form.pure-form { margin: 0; }

.mcbu-field { margin-bottom: 15px; }
.mcbu-field:first-child { margin-bottom: 15px; }

.mcbu-field label,
.mcbu-card form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--mcbu-label);
  margin-bottom: 7px;
}

/* Metin/parola girişleri */
.mcbu-card input[type="text"],
.mcbu-card input[type="password"],
.mcbu-card select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--mcbu-line);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--mcbu-ink);
  background: var(--mcbu-field-bg);
  outline: none;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
.mcbu-card input[type="text"]:focus,
.mcbu-card input[type="password"]:focus,
.mcbu-card select:focus {
  border-color: var(--mcbu-cyan);
  box-shadow: 0 0 0 3px rgba(18, 169, 206, .15);
}
.mcbu-card input::placeholder { color: var(--mcbu-placeholder); }
.mcbu-card input[disabled] { opacity: .7; cursor: not-allowed; }

/* Checkbox satırları (remember_me vb.) */
.mcbu-card .pure-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--mcbu-muted);
  margin: 10px 0 0;
  cursor: pointer;
}
.mcbu-card .pure-checkbox input[type="checkbox"] {
  width: auto;
  height: auto;
  margin: 0;
}
.mcbu-card .pure-checkbox small { font-size: 12.5px; }

/* Giriş butonu */
.mcbu-card #submit_button,
.mcbu-btn-login {
  margin-top: 22px;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--mcbu-cyan), var(--mcbu-cyan-dk)) !important;
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(15, 163, 199, .7);
  transition: filter .15s;
}
.mcbu-card #submit_button:hover { filter: brightness(1.04); }
.mcbu-card #submit_button:disabled { filter: grayscale(.2) brightness(.95); cursor: default; }

/* ============================================================
   e-Devlet butonu (koşullu görünürlük twig tarafında)
   ============================================================ */
.mcbu-edevlet-lead {
  font-size: 13px;
  line-height: 1.55;
  color: var(--mcbu-muted);
  margin: 0 0 16px;
  text-align: center;
}
.mcbu-btn-edevlet {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--mcbu-red), var(--mcbu-red-dk));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 10px 22px -10px rgba(198, 40, 40, .7);
  transition: filter .15s;
}
.mcbu-btn-edevlet:hover { filter: brightness(1.05); }
.mcbu-btn-edevlet img { width: 32px; height: 32px; display: block; }

/* ============================================================
   Alt bağlantılar (info_text / loginpage_links)
   ============================================================ */
.mcbu-foot-links {
  margin-top: 28px;
  border-top: 1px solid var(--mcbu-line-soft);
  padding-top: 18px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--mcbu-muted);
}
.mcbu-foot-links .row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mcbu-foot-links a {
  color: var(--mcbu-cyan-ink);
  font-weight: 600;
  text-decoration: none;
}
.mcbu-foot-links a:hover { text-decoration: underline; background: transparent; }
.mcbu-foot-links .sep { color: #C3CDD5; }

/* info_text listesini yatay/sade göster */
.mcbu-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mcbu-muted);
}
.mcbu-info a { color: var(--mcbu-cyan-ink); font-weight: 600; text-decoration: none; }
.mcbu-info a:hover { text-decoration: underline; }

/* Panel alt yazısı (Bilgi İşlem) — başlık paragrafıyla aynı stil */
.mcbu-card-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--mcbu-muted);
}

/* ============================================================
   Hesap seçim ekranı (e-Devlet çoklu hesap)
   ============================================================ */
.mcbu-card-narrow { width: 520px; }

.mcbu-account-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mcbu-account-list form { margin: 0; }

.mcbu-account-btn {
  width: 100%;
  min-height: 56px;
  padding: 10px 18px;
  border: 1px solid var(--mcbu-line);
  border-radius: 10px;
  background: var(--mcbu-field-bg);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.mcbu-account-btn:hover {
  border-color: var(--mcbu-cyan);
  background: #F3F8FA;
  box-shadow: 0 6px 18px -10px rgba(15, 163, 199, .5);
}
.mcbu-account-btn:focus-visible {
  outline: none;
  border-color: var(--mcbu-cyan);
  box-shadow: 0 0 0 3px rgba(18, 169, 206, .15);
}
.mcbu-account-mail {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--mcbu-ink);
}
.mcbu-account-name {
  font-size: 12.5px;
  color: var(--mcbu-muted);
}

/* ============================================================
   Mesaj kutuları (hata / uyarı) — kart içi uyumlu
   ============================================================ */
.mcbu-card .message-box {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
  border-left: 4px solid;
}
.mcbu-card .message-box.error {
  background-color: #fdecea;
  border-left-color: var(--mcbu-red);
  color: #7a1a1a;
}
.mcbu-card .message-box.error h3 { margin: 0 0 4px; font-size: 14px; }
.mcbu-card .message-box.error p { margin: 0; }
.mcbu-card .message-box.warning {
  background-color: #fff6e5;
  border-left-color: #e0a72e;
  color: #6b4e12;
}

h1 { font-size: 1em; }

.copyrights { color: var(--mcbu-muted); }
.copyrights a:hover { background-color: transparent !important; }

/* ============================================================
   Mobil
   ============================================================ */
@media (max-width: 640px) {
  #content { padding: 0 12px; }
  #content .wrap { width: 100%; max-width: 100%; min-height: 100vh; min-height: 100dvh; }
  .mcbu-topbar { gap: 10px; }
  .mcbu-brand img { height: 60px; }
  .mcbu-lang { height: 34px; font-size: 12.5px; padding: 0 30px 0 12px; }
  .mcbu-card,
  .mcbu-card-narrow {
    width: 100%;
    max-width: 100%;
    padding: 24px 18px 30px;
    border-radius: 16px;
  }
  .mcbu-cols {
    flex-direction: column;
    gap: 0;
    margin-top: 22px;
  }
  .mcbu-col-cred { padding-right: 0; }
  .mcbu-col-edevlet { padding-left: 0; margin-top: 22px; }
  /* Dikey ayracı yataya çevir */
  .mcbu-divider {
    flex-direction: row;
    width: 100%;
    margin: 22px 0 0;
    gap: 12px;
  }
  .mcbu-divider .line { width: auto; height: 1px; }
  .mcbu-cols.single .mcbu-col-cred { width: 100%; max-width: 100%; margin: 0; }
}