﻿/* Isletme / Bayi portal giris — MudBlazor (bootstrap yok) */

.portal-host {
  margin: 0;
  font-family: Roboto, "Segoe UI", system-ui, sans-serif;
  background: #f0f4f8;
  color: #1e293b;
}

.portal-host .mud-layout {
  min-height: 100vh;
}

.elite-main-content {
  min-height: calc(100vh - 48px);
  background: #f0f4f8 !important;
}

.elite-appbar {
  background: #fff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.elite-login-shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(25, 118, 210, 0.06), rgba(13, 148, 136, 0.06));
}

.elite-login-card {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}

.elite-bayi-card {
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.elite-remember-row {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(25, 118, 210, 0.06);
}

/* Bootstrap olmadan SVG ikon boyutu */
.portal-host svg.mud-icon-root,
.portal-host .mud-icon-root.mud-svg-icon {
  width: 1.25rem !important;
  height: 1.25rem !important;
  max-width: none !important;
  flex-shrink: 0;
}

.portal-host .mud-alert-icon .mud-icon-root {
  width: 1.5rem !important;
  height: 1.5rem !important;
}

.portal-host .mud-alert {
  align-items: flex-start;
}

@media (min-width: 960px) {
  .elite-login-shell .mud-grid {
    align-items: center;
  }
}

@media (max-width: 959px) {
  .elite-login-shell {
    padding: 1rem 0.75rem 2rem;
  }
}

/* Blazor hata bandi — portal layout site.css yuklemez */
#blazor-error-ui {
  display: none;
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

/* Giris formu tiklanabilirlik */
.portal-host .elite-login-card,
.portal-host .elite-bayi-card,
.portal-host .elite-remember-row,
.portal-host .elite-login-card .mud-button,
.portal-host .elite-bayi-card .mud-button,
.portal-host .elite-login-card .mud-checkbox,
.portal-host .elite-bayi-card .mud-checkbox {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.portal-host .mud-overlay:not(.mud-overlay-open) {
  pointer-events: none !important;
}

.portal-boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4f8;
  color: #64748b;
  font-family: "Plus Jakarta Sans", Roboto, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  pointer-events: auto;
}

.portal-boot.is-hidden {
  display: none !important;
  pointer-events: none !important;
}

.blazor-connected .portal-boot {
  display: none !important;
  pointer-events: none !important;
}

/* Isletme portali — tiklanabilirlik (mud overlay / boot ustunde) */
.portal-host .ip-shell,
.portal-host .ip-login-wrap,
.portal-host .ip-login-card,
.portal-host .ip-login-card form,
.portal-host .ip-login-card input,
.portal-host .ip-login-card button,
.portal-host .ip-login-card a,
.portal-host .ip-login-card label,
.portal-host .ip-panel,
.portal-host .ip-card {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.portal-host .mud-overlay:not(.mud-overlay-open) {
  pointer-events: none !important;
  display: none !important;
}
