*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  color: #0f172a;
  background: #f8fafc;
  min-height: 100vh;
  min-height: 100dvh;
}

.login-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  width: 100%;
}

/* ====== BAL OLDAL – márka panel ====== */
.login-side {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4rem 3rem;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 25%, rgba(6,182,212,0.35) 0%, transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(16,185,129,0.35) 0%, transparent 50%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  background-color: #0f172a;
}
.login-side::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><circle cx='1' cy='1' r='1' fill='%23ffffff' opacity='0.08'/></svg>\");
  pointer-events: none;
}
.login-side__inner {
  position: relative;
  max-width: 460px;
  z-index: 1;
  margin: 0 auto;
  width: 100%;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 3rem;
}
.login-brand__logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(6,182,212,0.4);
}
.login-brand__text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.login-brand__sub {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  margin-top: 2px;
}

.login-side h1 {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: #fff;
}
.login-side p {
  font-size: 1.025rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.login-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2.5rem;
  padding: 0.55rem 1rem 0.55rem 0.8rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 99px;
  color: #d1fae5;
  font-size: 0.85rem;
  text-decoration: none !important;
  transition: background 0.2s;
}
.login-status:hover { background: rgba(255,255,255,0.12); }
.login-status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16,185,129,0.7);
  animation: sl-pulse 2s infinite;
}
.login-status .muted { color: rgba(255,255,255,0.45); font-size: 0.78rem; }
@keyframes sl-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.9); }
}

.login-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.login-stat strong {
  display: block;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.login-stat span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

/* ====== JOBB OLDAL – form ====== */
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #f8fafc;
}

.login-card {
  width: 100%;
  max-width: 410px;
}

.login-card__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.login-card__subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

/* Alerts */
.alert {
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.45;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.alert-error {
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.35);
  color: #7f1d1d;
}
.alert-success {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.35);
  color: #065f46;
}

/* Form fields */
.field-row { margin-bottom: 1rem; }
.field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.825rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: #334155;
}
.field-label a {
  font-size: 0.78rem;
  color: #2563eb;
  font-weight: 400;
  text-decoration: none;
}
.field-label a:hover { text-decoration: underline; }

.field-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* CAPTCHA spacing */
.sl-captcha { margin: 1rem 0 0.5rem; }

/* Actions */
.actions { margin-top: 1.5rem; }
.btn-primary {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  transition: all 0.15s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.3);
  filter: brightness(1.05);
}
.btn-primary:active { transform: translateY(0); }

/* Divider */
.login-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.75rem 0 1.25rem;
  color: #94a3b8;
  font-size: 0.8rem;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* Outline button */
.btn-outline {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-outline:hover {
  border-color: #2563eb;
  color: #2563eb;
}

/* Email help */
.login-help {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}
.login-help summary {
  cursor: pointer;
  padding: 0.5rem 0;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #475569;
}
.login-help summary::-webkit-details-marker { display: none; }
.login-help summary::before {
  content: '›';
  font-size: 1rem;
  color: #94a3b8;
  transition: transform 0.15s;
}
.login-help[open] summary::before { transform: rotate(90deg); }
.login-help[open] summary { color: #0f172a; font-weight: 500; }
.login-help p {
  margin: 0.4rem 0 0;
  line-height: 1.5;
}
.login-help code {
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Footer */
.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: #94a3b8;
}
.login-footer a { color: #2563eb; text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }

/* ====== Mobil – bal panel rejt ====== */
@media (max-width: 960px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .login-main { background: #fff; padding: 1.5rem 1rem; }
  .login-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
  }
  .login-card::before {
    content: 'SecureLayer Ops Panel';
    display: block;
    text-align: center;
    font-weight: 700;
    color: #06b6d4;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
  }
}
