/* HATSU kurumsal kimlik — Sanal Şube */

:root {
  --hatsu-ink: #10233d;
  --hatsu-muted: #6a7f96;
  --hatsu-bg: #f6f8fb;
  --hatsu-card: #ffffff;
  --hatsu-soft: #e6eef5;
  --hatsu-brand: #296098;
  --hatsu-accent: #2596d8;
  --hatsu-ok: #0aa14b;
  --hatsu-shadow: 0 14px 36px rgba(10, 27, 46, 0.16);
}

body {
  font-family: Inter, system-ui, "Segoe UI", Roboto, Arial, sans-serif !important;
  color: var(--hatsu-ink);
  background: var(--hatsu-bg);
}

html:has(.hatsu-auth-page),
body:has(.hatsu-auth-page) {
  margin: 0;
  min-height: 100%;
  background: var(--hatsu-bg);
}

body:has(.hatsu-auth-page) {
  margin-bottom: 0 !important;
}

@media (min-width: 992px) {
  html:has(.hatsu-auth-page),
  body:has(.hatsu-auth-page) {
    background:
      linear-gradient(145deg, var(--hatsu-ink) 0%, var(--hatsu-brand) 48%, #1a75a8 100%) 0 0 / 48% 100% no-repeat,
      var(--hatsu-bg);
  }
}

/* Bootstrap / Sneat primary override */
.btn-primary,
.bg-primary {
  background-color: var(--hatsu-brand) !important;
  border-color: var(--hatsu-brand) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #1f4f7d !important;
  border-color: #1f4f7d !important;
}

.text-primary {
  color: var(--hatsu-brand) !important;
}

.bg-menu-theme {
  background-color: #fff !important;
}

.menu-inner .menu-item.active > .menu-link,
.menu-inner .menu-item.active > .menu-link.menu-toggle {
  background: rgba(41, 96, 152, 0.1) !important;
  color: var(--hatsu-brand) !important;
}

.menu-inner .menu-item .menu-link:hover {
  color: var(--hatsu-brand) !important;
}

.menu-inner > .menu-item.active::before {
  background: var(--hatsu-brand) !important;
}

.layout-navbar {
  border-bottom: 1px solid var(--hatsu-soft);
}

.layout-navbar .layout-menu-toggle.navbar-nav > .nav-link {
  color: var(--hatsu-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
}

/* Sanal Şube — işlem kartları */
.ops-hero {
  text-align: left;
  margin-bottom: 2.5rem;
  margin-top: 0.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hatsu-soft);
}

.ops-logo {
  height: 64px;
  margin-bottom: 1.25rem;
}

.ops-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--hatsu-ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.ops-subtitle {
  color: var(--hatsu-muted);
  font-size: 1rem;
  margin: 0;
}

.ops-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding-bottom: 2rem;
}

@media (min-width: 992px) {
  .ops-grid:not(.ops-grid-detail) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.op-card {
  position: relative;
  min-height: 190px;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem 1.5rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-decoration: none !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 4px 18px rgba(16, 35, 61, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  color: #fff !important;
}

.op-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14) 0%, transparent 55%);
  pointer-events: none;
}

.op-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(16, 35, 61, 0.22);
}

/* HATSU paletinden türetilmiş kart renkleri */
.op-card:nth-child(1) {
  background: linear-gradient(145deg, #3a7aad 0%, #296098 55%, #1e4d78 100%);
}

.op-card:nth-child(2) {
  background: linear-gradient(145deg, #3dba72 0%, #1faa59 55%, #0a8f45 100%);
}

.op-card:nth-child(3) {
  background: linear-gradient(145deg, #4caf7a 0%, #2e9d64 55%, #1b7d4c 100%);
}

.op-card:nth-child(4) {
  background: linear-gradient(145deg, #4aa8dc 0%, #2596d8 55%, #1a75a8 100%);
}

.op-card:nth-child(5) {
  background: linear-gradient(145deg, #f0a14a 0%, #e67e22 55%, #c96a14 100%);
}

.op-card:nth-child(6) {
  background: linear-gradient(145deg, #e85d5d 0%, #d32f2f 55%, #b71c1c 100%);
}

.op-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom-left-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: -2px 2px 12px rgba(16, 35, 61, 0.1);
  transition: transform 0.22s ease;
  z-index: 1;
}

.op-card:nth-child(1) .op-icon { color: #296098; }
.op-card:nth-child(2) .op-icon { color: #1faa59; }
.op-card:nth-child(3) .op-icon { color: #2e9d64; }
.op-card:nth-child(4) .op-icon { color: #2596d8; }
.op-card:nth-child(5) .op-icon { color: #e67e22; }
.op-card:nth-child(6) .op-icon { color: #d32f2f; }

.op-card:hover .op-icon {
  transform: scale(1.06);
}

.op-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #fff !important;
  padding-right: 2.5rem;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.op-desc {
  font-size: 0.875rem;
  font-weight: 400;
  opacity: 0.92;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  z-index: 1;
}

@media (max-width: 576px) {
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .op-card {
    min-height: 170px;
  }
}

/* Alt işlem menüsü (Fatura vb.) — çoklu kart döngüsü */
.ops-grid-detail {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ops-grid-detail .op-card {
  min-height: 155px;
  padding: 1.5rem 1.25rem 1.25rem;
  padding-top: 2rem;
}

.ops-grid-detail .op-card:nth-child(6n+1) {
  background: linear-gradient(145deg, #3a7aad 0%, #296098 55%, #1e4d78 100%);
}
.ops-grid-detail .op-card:nth-child(6n+2) {
  background: linear-gradient(145deg, #3dba72 0%, #1faa59 55%, #0a8f45 100%);
}
.ops-grid-detail .op-card:nth-child(6n+3) {
  background: linear-gradient(145deg, #4caf7a 0%, #2e9d64 55%, #1b7d4c 100%);
}
.ops-grid-detail .op-card:nth-child(6n+4) {
  background: linear-gradient(145deg, #4aa8dc 0%, #2596d8 55%, #1a75a8 100%);
}
.ops-grid-detail .op-card:nth-child(6n+5) {
  background: linear-gradient(145deg, #f0a14a 0%, #e67e22 55%, #c96a14 100%);
}
.ops-grid-detail .op-card:nth-child(6n+6) {
  background: linear-gradient(145deg, #e85d5d 0%, #d32f2f 55%, #b71c1c 100%);
}
.ops-grid-detail .op-card:nth-child(6n+1) .op-icon { color: #296098; }
.ops-grid-detail .op-card:nth-child(6n+2) .op-icon { color: #1faa59; }
.ops-grid-detail .op-card:nth-child(6n+3) .op-icon { color: #2e9d64; }
.ops-grid-detail .op-card:nth-child(6n+4) .op-icon { color: #2596d8; }
.ops-grid-detail .op-card:nth-child(6n+5) .op-icon { color: #e67e22; }
.ops-grid-detail .op-card:nth-child(6n+6) .op-icon { color: #d32f2f; }

@media (max-width: 992px) {
  .ops-grid-detail {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .ops-grid-detail {
    grid-template-columns: 1fr;
  }
}

/* Giriş / kayıt sayfaları */
.hatsu-auth-page {
  min-height: 100vh;
  background: var(--hatsu-bg);
}

@media (min-width: 992px) {
  .hatsu-auth-page {
    background:
      linear-gradient(145deg, var(--hatsu-ink) 0%, var(--hatsu-brand) 48%, #1a75a8 100%) 0 0 / 48% 100% no-repeat,
      var(--hatsu-bg);
  }
}

.hatsu-auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

@media (min-width: 992px) {
  .hatsu-auth-shell {
    flex-direction: row;
    align-items: stretch;
  }
}

.hatsu-auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 100vh;
  padding: 3rem 3.5rem;
  background: linear-gradient(145deg, var(--hatsu-ink) 0%, var(--hatsu-brand) 48%, #1a75a8 100%);
  color: #fff;
}

@media (min-width: 992px) {
  .hatsu-auth-brand {
    flex: 0 0 48%;
    max-width: 48%;
    align-self: stretch;
    min-height: 100vh;
  }
}

.hatsu-auth-brand::before,
.hatsu-auth-brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.hatsu-auth-brand::before {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -60px;
}

.hatsu-auth-brand::after {
  width: 220px;
  height: 220px;
  bottom: -40px;
  left: -30px;
}

.hatsu-auth-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.hatsu-auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hatsu-auth-logo-link {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
  border-radius: 12px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hatsu-auth-logo-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.hatsu-auth-brand .hatsu-auth-logo-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

.hatsu-auth-card .hatsu-auth-logo-link:focus-visible {
  outline: 2px solid var(--hatsu-brand);
  outline-offset: 6px;
}

.hatsu-auth-brand-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  margin-bottom: 1.75rem;
}

.hatsu-auth-brand-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.hatsu-auth-brand-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 2rem;
}

.hatsu-auth-brand-features {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hatsu-auth-brand-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

.hatsu-auth-brand-features i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hatsu-auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  padding: 2rem 1.5rem;
  min-height: 100vh;
}

.hatsu-auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--hatsu-soft);
  border-radius: 1.25rem;
  box-shadow: 0 18px 48px rgba(16, 35, 61, 0.1);
  padding: 2rem 2rem 1.75rem;
}

.hatsu-auth-card .hatsu-auth-logo-link {
  display: block;
  width: fit-content;
  margin: 0 auto 1.25rem;
}

.hatsu-auth-card-logo {
  display: block;
  max-width: 160px;
  margin: 0;
}

.hatsu-auth-card h4 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--hatsu-ink);
  text-align: center;
  margin-bottom: 0.35rem;
}

.hatsu-auth-card .auth-subtitle {
  text-align: center;
  color: var(--hatsu-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.hatsu-auth-card .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hatsu-ink);
  margin-bottom: 0.4rem;
}

.hatsu-auth-card .form-control {
  min-height: 48px;
  border-radius: 12px;
  border: 1.5px solid var(--hatsu-soft);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hatsu-auth-card .form-control:focus {
  border-color: var(--hatsu-brand);
  box-shadow: 0 0 0 3px rgba(41, 96, 152, 0.12);
}

.hatsu-auth-card .input-group .form-control {
  border-end-end-radius: 0;
  border-start-end-radius: 0;
}

.hatsu-auth-card #TogglePasswordBtn {
  border: 1.5px solid var(--hatsu-soft);
  border-inline-start: 0;
  border-radius: 0 12px 12px 0;
  color: var(--hatsu-muted);
  background: #fff;
  min-height: 48px;
}

.hatsu-auth-card #TogglePasswordBtn:hover,
.hatsu-auth-card #TogglePasswordBtn:focus {
  color: var(--hatsu-brand);
  background: rgba(41, 96, 152, 0.04);
  box-shadow: none;
}

.hatsu-auth-card .btn-primary {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(135deg, #3a7aad 0%, var(--hatsu-brand) 100%) !important;
  border: none !important;
  box-shadow: 0 10px 24px rgba(41, 96, 152, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hatsu-auth-card .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(41, 96, 152, 0.32);
  background: linear-gradient(135deg, #3a7aad 0%, #1f4f7d 100%) !important;
}

.hatsu-auth-card .link-primary {
  color: var(--hatsu-brand) !important;
  font-weight: 600;
  text-decoration: none;
}

.hatsu-auth-card .link-primary:hover {
  color: #1f4f7d !important;
  text-decoration: underline;
}

.hatsu-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1rem;
  color: var(--hatsu-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hatsu-auth-divider::before,
.hatsu-auth-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--hatsu-soft);
}

.hatsu-auth-islemler-btn {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 12px;
  border: 1.5px solid rgba(41, 96, 152, 0.22);
  background: linear-gradient(180deg, #f7fbfe 0%, #eef5fb 100%);
  color: var(--hatsu-brand);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(41, 96, 152, 0.08);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}

.hatsu-auth-islemler-btn i {
  font-size: 1.1rem;
}

.hatsu-auth-islemler-btn:hover {
  transform: translateY(-1px);
  color: #1f4f7d;
  border-color: var(--hatsu-brand);
  background: #fff;
  box-shadow: 0 12px 24px rgba(41, 96, 152, 0.16);
  text-decoration: none;
}

.hatsu-auth-islemler-btn:focus-visible {
  outline: 2px solid var(--hatsu-brand);
  outline-offset: 3px;
}

.hatsu-auth-footer-text {
  text-align: center;
  margin-top: 1.25rem;
  margin-bottom: 0;
  color: var(--hatsu-muted);
  font-size: 0.92rem;
}

.hatsu-auth-edevlet-btn {
  min-height: 48px;
  border-radius: 12px !important;
  border: 2px solid #e31e24 !important;
  color: #e31e24 !important;
  background: #fff !important;
  font-weight: 700;
  transition: background 0.2s, box-shadow 0.2s;
}

.hatsu-auth-edevlet-btn:hover {
  background: #fff5f5 !important;
  color: #c41920 !important;
  box-shadow: 0 8px 20px rgba(227, 30, 36, 0.15);
}

.hatsu-auth-captcha-panel {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--hatsu-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6fc 100%);
}

.hatsu-auth-captcha-image {
  border: 1px solid var(--hatsu-soft);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.hatsu-auth-captcha-image img {
  display: block;
  width: 100%;
  height: 52px;
  object-fit: fill;
  background: #f7f0dd;
}

.hatsu-auth-captcha-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.hatsu-auth-captcha-refresh {
  width: 52px;
  min-width: 52px;
  height: 52px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--hatsu-ok) 0%, #088a40 100%);
  box-shadow: 0 8px 20px rgba(10, 161, 75, 0.28);
}

.hatsu-auth-captcha-input {
  flex: 1;
  min-width: 0;
  height: 52px;
  border-radius: 12px;
  border: 1.5px solid var(--hatsu-soft);
  background: #fff;
  font-size: 1rem;
}

.hatsu-auth-captcha-input:focus {
  border-color: var(--hatsu-brand);
  box-shadow: 0 0 0 3px rgba(41, 96, 152, 0.12);
}

@media (max-width: 991px) {
  .hatsu-auth-brand {
    padding: 2rem 1.5rem 1.75rem;
    min-height: auto;
  }

  .hatsu-auth-brand-logo {
    max-width: 140px;
    margin-bottom: 1rem;
  }

  .hatsu-auth-brand-title {
    font-size: 1.5rem;
    color: #fff;
  }

  .hatsu-auth-brand-text {
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }

  .hatsu-auth-brand-features {
    display: none;
  }

  .hatsu-auth-main {
    padding: 0 1rem 2rem;
    margin-top: -0.5rem;
  }

  .hatsu-auth-card {
    padding: 1.5rem 1.25rem 1.25rem;
  }
}
