
html,
body.auth-gate-page {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background: #f1f5f9;
  color: #0f172a;
  font-family: Inter, system-ui, sans-serif;
}

[data-theme="dark"] html,
[data-theme="dark"] body.auth-gate-page {
  background: #0b1220;
  color: #e5e7eb;
}

.auth-gate-main {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.auth-gate-card {
  width: 100%;
  max-width: 26rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
}

[data-theme="dark"] .auth-gate-card {
  background: #111827;
  border-color: #374151;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.auth-gate-logo {
  display: block;
  margin: 0 auto 1rem;
  height: 2.25rem;
  width: auto;
}

.auth-gate-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
}

.auth-gate-lead {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.45;
}

[data-theme="dark"] .auth-gate-lead {
  color: #94a3b8;
}

.auth-gate-footer {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: #64748b;
}

.auth-gate-footer a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.auth-gate-footer a:hover {
  text-decoration: underline;
}

body.auth-gate-page .oauth-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

body.auth-gate-page .oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid #d5d9e0;
  background: #fff;
  color: #111;
  padding: 0.62rem 0.75rem;
  cursor: pointer;
  box-sizing: border-box;
}

body.auth-gate-page .oauth-btn:hover:not(:disabled) {
  background: #f7f8fa;
  border-color: #c5cad3;
}

body.auth-gate-page .oauth-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.auth-gate-page .oauth-btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

body.auth-gate-page .oauth-btn--google .oauth-btn-icon {
  background: #fff;
  border: 1px solid #dadce0;
  color: #4285f4;
}

body.auth-gate-page .oauth-btn--apple .oauth-btn-icon {
  background: #111;
  color: #fff;
}

body.auth-gate-page .oauth-btn--apple .oauth-btn-icon::before {
  content: "";
  width: 0.55rem;
  height: 0.7rem;
  border-radius: 40% 40% 35% 35%;
  background: currentColor;
  display: block;
}

body.auth-gate-page .oauth-btn--facebook .oauth-btn-icon {
  background: #1877f2;
  color: #fff;
}

body.auth-gate-page .oauth-hint {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
  text-align: center;
}

body.auth-gate-page .login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  color: #999;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.auth-gate-page .login-divider::before,
body.auth-gate-page .login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e3e6ea;
}

body.auth-gate-page .login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.auth-gate-page .auth-security-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 0.1rem 0 0.15rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-sizing: border-box;
  overflow: visible;
}

body.auth-gate-page .auth-manual-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.35rem 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.35;
  color: #344054;
  cursor: pointer;
  user-select: none;
}

body.auth-gate-page .auth-manual-check input {
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: #2563eb;
}

body.auth-gate-page .auth-turnstile {
  display: block;
  min-height: 65px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  line-height: 0;
}

body.auth-gate-page .auth-turnstile iframe {
  max-width: 100%;
}

body.auth-gate-page .auth-security-fail {
  margin: 0;
  font-size: 0.82rem;
  color: #b42318;
  line-height: 1.4;
}

body.auth-gate-page .login-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
  margin: 0;
}

body.auth-gate-page .login-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #444;
}

body.auth-gate-page .login-field input {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  border: 1px solid #d5d9e0;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: #fff;
  color: #111;
  box-sizing: border-box;
}

body.auth-gate-page .login-field input::-webkit-contacts-auto-fill-button,
body.auth-gate-page .login-field input::-webkit-credentials-auto-fill-button {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0;
  height: 0;
  margin: 0;
  opacity: 0;
}

body.auth-gate-page .login-forgot {
  margin: -0.35rem 0 0;
  text-align: right;
  font-size: 0.82rem;
}

body.auth-gate-page .login-forgot a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

body.auth-gate-page .login-forgot a:hover {
  text-decoration: underline;
}

body.auth-gate-page .login-error {
  margin: 0;
  font-size: 0.85rem;
  color: #c62828;
  line-height: 1.4;
}

body.auth-gate-page .login-ok {
  margin: 0;
  font-size: 0.85rem;
  color: #2e7d32;
  line-height: 1.4;
}

body.auth-gate-page .login-submit,
body.auth-gate-page .site-header-btn--primary {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}

body.auth-gate-page .login-submit:hover,
body.auth-gate-page .site-header-btn--primary:hover {
  background: #1d4ed8;
}

body.auth-gate-page .login-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.auth-gate-page .account-type-pick {
  margin: 0 0 0.35rem;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

body.auth-gate-page .account-type-pick__legend {
  padding: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #111;
}

body.auth-gate-page .account-type-pick__hint {
  margin: -0.15rem 0 0.1rem;
  font-size: 0.78rem;
  color: #666;
  line-height: 1.35;
}

body.auth-gate-page .account-type-option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d5d9e0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
}

body.auth-gate-page .account-type-option:hover,
body.auth-gate-page .account-type-option.is-selected {
  border-color: #111;
}

body.auth-gate-page .account-type-option.is-selected {
  box-shadow: 0 0 0 1px #111;
}

body.auth-gate-page .account-type-option input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

body.auth-gate-page .account-type-option__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

body.auth-gate-page .account-type-option__text strong {
  font-size: 0.92rem;
  color: #111;
}

body.auth-gate-page .account-type-option__text small {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.35;
}

[data-theme="dark"] body.auth-gate-page .oauth-btn,
[data-theme="dark"] body.auth-gate-page .login-field input,
[data-theme="dark"] body.auth-gate-page .account-type-option {
  background: #0f172a;
  border-color: #374151;
  color: #e5e7eb;
}

[data-theme="dark"] body.auth-gate-page .oauth-btn:hover:not(:disabled) {
  background: #1e293b;
}

[data-theme="dark"] body.auth-gate-page .login-label,
[data-theme="dark"] body.auth-gate-page .oauth-hint,
[data-theme="dark"] body.auth-gate-page .login-divider {
  color: #94a3b8;
}

[data-theme="dark"] body.auth-gate-page .login-divider::before,
[data-theme="dark"] body.auth-gate-page .login-divider::after {
  background: #374151;
}

/* Rejtett űrlap (pl. aktiváló jelszó mező token nélkül) ne jelenjen meg. */
.login-form[hidden] {
  display: none !important;
}

/* Jogi tájékoztató sor (regisztráció / belépés) */
.auth-legal-note {
  margin: 12px 0 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted, #64748b);
  text-align: center;
}
.auth-legal-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Jól látható visszajelzés (pl. elfelejtett jelszó → „Elküldtük!”) */
body.auth-gate-page .auth-notice {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.25rem 0 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: left;
}
body.auth-gate-page .auth-notice[hidden] {
  display: none;
}
body.auth-gate-page .auth-notice--ok {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}
[data-theme="dark"] body.auth-gate-page .auth-notice--ok {
  background: rgba(76, 175, 80, 0.14);
  border-color: rgba(129, 199, 132, 0.45);
  color: #c8e6c9;
}
body.auth-gate-page .auth-notice__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
}
body.auth-gate-page .auth-notice__title::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}
body.auth-gate-page .auth-notice b {
  word-break: break-all;
}
body.auth-gate-page .auth-notice__again {
  align-self: flex-start;
  margin-top: 0.2rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bymy-blue, #2563eb);
  cursor: pointer;
}
body.auth-gate-page .auth-notice__again:disabled {
  color: inherit;
  opacity: 0.65;
  font-weight: 500;
  cursor: default;
}
body.auth-gate-page .login-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

/* A cégeknek küldött levél linkjéről érkezők: melyik cég oldalát aktiválják */
.ajanlas-ceg-banner {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #f3dd8a;
  border-left: 5px solid #f0c52c;
  border-radius: 12px;
  background: #fff8dc;
  text-align: left;
}
.ajanlas-ceg-banner__title { margin: 0 0 4px; font-size: 0.98rem; line-height: 1.4; color: #14171c; }
.ajanlas-ceg-banner__text { margin: 0; font-size: 0.86rem; line-height: 1.45; color: #5b4a0a; }
html[data-theme="dark"] .ajanlas-ceg-banner { background: #2b2614; border-color: #5c4d17; border-left-color: #f0c52c; }
html[data-theme="dark"] .ajanlas-ceg-banner__title { color: #f3f4f6; }
html[data-theme="dark"] .ajanlas-ceg-banner__text { color: #e8d79a; }
