/* Auth pages — clean white split layout */
.euc-auth-page {
  min-height: 100vh;
  background: #f8fafc;
  color: #0f172a;
  font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
}

.euc-auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 100%;
}

.euc-auth-brand {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(600px 400px at 20% 20%, rgba(14, 165, 233, 0.1), transparent),
    radial-gradient(500px 300px at 80% 80%, rgba(99, 102, 241, 0.06), transparent),
    linear-gradient(160deg, #ffffff, #f8fafc);
  border-right: 1px solid #e2e8f0;
}

.euc-auth-brand__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}
.euc-auth-brand__logo:hover { color: #0f172a; text-decoration: none; }
.euc-auth-brand__mark {
  width: 40px; height: 40px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(14,165,233,.15), 0 4px 14px rgba(14,165,233,.2);
}
.euc-auth-brand__mark img { width: 100%; height: 100%; display: block; object-fit: cover; }

.euc-auth-brand__hero h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #0f172a;
}
.euc-auth-brand__hero p { margin: 0; color: #64748b; font-size: 0.95rem; line-height: 1.55; max-width: 22rem; }

.euc-auth-perks { margin-top: 2rem; display: grid; gap: 0.65rem; }
.euc-auth-perk {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 0.85rem; border-radius: 12px;
  background: #fff; border: 1px solid #e2e8f0;
  font-size: 0.88rem; color: #334155;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.euc-auth-perk svg { flex-shrink: 0; color: #10b981; }

.euc-auth-brand__foot { font-size: 0.82rem; color: #64748b; }
.euc-auth-brand__foot a { color: #475569; }

.euc-auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: #ffffff;
}

.euc-auth-panel { width: min(400px, 100%); }
.euc-auth-panel h1 { margin: 0 0 0.35rem; font-size: 1.65rem; letter-spacing: -0.02em; color: #0f172a; }
.euc-auth-panel__sub { margin: 0 0 1.5rem; color: #64748b; font-size: 0.92rem; }

.euc-auth-features { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.25rem; }
.euc-auth-feature {
  padding: 0.35rem 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe;
}

.euc-auth-form { display: grid; gap: 1rem; }
.euc-auth-form label { display: grid; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: #475569; }
.euc-auth-form input {
  padding: 0.75rem 0.85rem; border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff; color: #0f172a; font-size: 0.95rem;
  transition: border-color .2s, box-shadow .2s;
}
.euc-auth-field { display: grid; gap: 0.35rem; }
.euc-auth-field__label { font-size: 0.85rem; font-weight: 600; color: #475569; }
.euc-auth-select-wrap { position: relative; }
.euc-auth-select-wrap::after {
  content: ""; pointer-events: none; position: absolute; right: 0.85rem; top: 50%;
  width: 0.45rem; height: 0.45rem; border-right: 2px solid #64748b; border-bottom: 2px solid #64748b;
  transform: translateY(-65%) rotate(45deg); opacity: 0.85;
}
.euc-auth-select {
  width: 100%; appearance: none; -webkit-appearance: none;
  padding: 0.75rem 2.25rem 0.75rem 0.85rem; border-radius: 12px;
  border: 1px solid #e2e8f0; background: #fff; color: #0f172a;
  font-size: 0.95rem; font-family: inherit; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.euc-auth-form input:focus,
.euc-auth-select:focus {
  outline: none; border-color: var(--primary, #0ea5e9);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.euc-auth-select option { background: #fff; color: #0f172a; }

.euc-auth-password-reqs {
  margin: 0.35rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.2rem;
  font-size: 0.75rem; font-weight: 500; color: #64748b;
}
.euc-auth-password-reqs li {
  padding-left: 1rem; position: relative;
}
.euc-auth-password-reqs li::before {
  content: "•"; position: absolute; left: 0; color: #0ea5e9;
}

.euc-auth-row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.euc-auth-row a { color: #2563eb; text-decoration: none; }
.euc-auth-row a:hover { text-decoration: underline; }

.euc-auth-submit {
  width: 100%; padding: 0.85rem 1rem; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb); color: #fff;
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: filter .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 6px 20px rgba(14,165,233,.25);
}
.euc-auth-submit:hover { filter: brightness(1.05); box-shadow: 0 8px 24px rgba(14,165,233,.32); }
.euc-auth-submit:active { transform: scale(0.99); }

.euc-auth-divider { display: flex; align-items: center; gap: 0.75rem; color: #94a3b8; font-size: 0.82rem; margin: 0.25rem 0; }
.euc-auth-divider::before, .euc-auth-divider::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }

.euc-auth-switch { text-align: center; font-size: 0.88rem; color: #64748b; margin-top: 1.25rem; }
.euc-auth-switch a { color: #2563eb; font-weight: 600; text-decoration: none; }
.euc-auth-switch a:hover { text-decoration: underline; }

.euc-auth-back {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-bottom: 1.25rem; color: #64748b; font-size: 0.88rem; text-decoration: none;
}
.euc-auth-back:hover { color: #0f172a; text-decoration: none; }

.euc-auth-page--admin .euc-auth-brand {
  background:
    radial-gradient(500px 300px at 30% 30%, rgba(245, 158, 11, 0.08), transparent),
    linear-gradient(160deg, #fffbeb, #f8fafc);
}
.euc-auth-page--admin .euc-auth-brand__mark {
  box-shadow: 0 0 0 1px rgba(251,191,36,.25), 0 4px 14px rgba(245,158,11,.2);
}

@media (max-width: 860px) {
  .euc-auth-split { grid-template-columns: 1fr; }
  .euc-auth-brand { display: none; }
  .euc-auth-main { padding: 1.5rem 1.25rem 2rem; align-items: flex-start; padding-top: 2.5rem; background: #f8fafc; }
  .euc-auth-page--chrome .euc-auth-main { padding-top: 1rem; }
  .euc-auth-mobile-brand {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 1.5rem; font-weight: 700; color: #0f172a; text-decoration: none;
  }
  .euc-auth-mobile-brand:hover { text-decoration: none; color: #0f172a; }
}
@media (min-width: 861px) {
  .euc-auth-mobile-brand { display: none; }
}

/* Site chrome — giriş / kayıt / şifre (landing header + footer ile) */
.euc-auth-page--chrome {
  --lp-max: 1140px;
  --lp-border: #e2e8f0;
  --lp-text: #0f172a;
  --lp-muted: #64748b;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  overflow-x: clip;
}
.euc-auth-page--chrome .lp-top-stack {
  flex-shrink: 0;
  width: 100%;
}
.euc-auth-page--chrome .euc-auth-split {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-height: 0 !important;
  align-items: stretch;
}
.euc-auth-page--chrome .euc-auth-brand,
.euc-auth-page--chrome .euc-auth-main {
  min-height: 0;
  min-width: 0;
}
.euc-auth-page--chrome .euc-auth-panel {
  width: min(420px, 100%);
}
.euc-auth-page--chrome .lp-footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
}
.euc-auth-page--chrome .euc-auth-mobile-brand { display: none !important; }
.euc-auth-page--chrome .euc-auth-features {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 860px) {
  .euc-auth-page--chrome .euc-auth-main {
    padding-top: 1rem;
    align-items: flex-start;
    background: #f8fafc;
  }
  .euc-auth-page--chrome .euc-auth-panel {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }
}

/* Panel bottom nav — mobile */
.euc-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(26, 35, 58, 0.98) 0%, rgba(11, 18, 32, 0.99) 100%);
  border-top: 1px solid rgba(59, 130, 246, 0.28);
  box-shadow:
    0 -6px 28px rgba(59, 130, 246, 0.14),
    0 -1px 0 rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
}
.euc-bottom-nav--admin {
  grid-template-columns: repeat(4, 1fr);
}
.euc-bottom-nav a, .euc-bottom-nav button {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  padding: 0.45rem 0.25rem; color: #94a3b8; font-size: 0.65rem; font-weight: 600;
  text-decoration: none; background: none; border: none; cursor: pointer; font-family: inherit;
  transition: color 0.15s, filter 0.15s;
}
.euc-bottom-nav svg { width: 22px; height: 22px; transition: filter 0.15s; }
.euc-bottom-nav a.is-active, .euc-bottom-nav button.is-active {
  color: #60a5fa;
  text-shadow: 0 0 14px rgba(96, 165, 250, 0.35);
}
.euc-bottom-nav a.is-active svg, .euc-bottom-nav button.is-active svg {
  filter: drop-shadow(0 0 7px rgba(96, 165, 250, 0.55));
}

@media (max-width: 860px) {
  .euc-bottom-nav { display: grid; }
  .euc-app .euc-shell-main { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  .euc-app .euc-shell-sidebar .euc-drawer-head { padding-top: calc(0.85rem + env(safe-area-inset-top)); }
}

.euc-auth-telegram-float {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0.65rem;
  border-radius: 12px;
  background: #229ED9;
  color: #fff;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.35);
}
.euc-auth-telegram-float:hover { color: #fff; filter: brightness(1.05); }
@media (max-width: 860px) {
  .euc-auth-telegram-float {
    top: auto;
    bottom: 5.5rem;
    transform: none;
    right: 0.75rem;
    padding: 0.65rem;
  }
  .euc-auth-telegram-float span { display: none; }
}

.euc-panel-telegram-float {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.65rem 0.55rem;
  border-radius: 12px;
  background: #229ED9;
  color: #fff;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.35);
}
.euc-panel-telegram-float:hover { color: #fff; filter: brightness(1.05); }
@media (max-width: 860px) {
  .euc-panel-telegram-float {
    top: auto;
    bottom: calc(5.5rem + env(safe-area-inset-bottom));
    transform: none;
    right: 0.75rem;
    padding: 0.55rem;
  }
  .euc-panel-telegram-float span { display: none; }
}
