/**
 * CityTransfer24 — Login (Gast / Google / SMS). Hero: lokale Fotos, siehe /img/login-hero/README.txt
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.ct24-login {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  color: #1f1f1f;
  background: #0f172a;
  position: relative;
  --ct24-ui-accent-ring: #2563eb;
  --ct24-ui-shell-radius-lg: 20px;
  /* Login-Hero Inspector (anpassbar; Defaults = bisherige Werte) */
  --ct24-hero-slide-a0: 0.95;
  --ct24-hero-slide-a1: 0;
  --ct24-hero-scrim-a0: 0.26;
  --ct24-hero-scrim-a1: 0;
  --ct24-hero-scrim-a2: 0;
  --ct24-hero-scrim-mid-stop: 0%;
  --ct24-hero-scrim-radial: 0;
}

.ct24-login-hero {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ct24-login-hero__slides {
  position: absolute;
  inset: 0;
}

.ct24-login-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: ct24LoginHeroSlide 18s ease-in-out infinite;
  transform: scale(1.03);
  will-change: opacity, transform;
}

/* Hero-Slides: eigene Dateien unter /img/login-hero/ (Wikimedia Commons, CC BY-SA — Hinweis auf login.html). */
.ct24-login-hero__slide--1 {
  background-image:
    linear-gradient(to bottom, rgba(15, 23, 42, 0.42) 0%, rgba(15, 23, 42, 0.72) 100%),
    url('/img/login-hero/airport.jpg');
  animation-delay: 0s;
}

.ct24-login-hero__slide--2 {
  background-image:
    linear-gradient(to bottom, rgba(15, 23, 42, 0.42) 0%, rgba(15, 23, 42, 0.72) 100%),
    url('/img/login-hero/limousine.jpg');
  animation-delay: -6s;
}

.ct24-login-hero__slide--3 {
  background-image:
    linear-gradient(to bottom, rgba(15, 23, 42, 0.42) 0%, rgba(15, 23, 42, 0.72) 100%),
    url('/img/login-hero/airplane.jpg');
  animation-delay: -12s;
}

@keyframes ct24LoginHeroSlide {
  0% {
    opacity: 0;
    transform: scale(1.06);
  }
  7% {
    opacity: 1;
    transform: scale(1.03);
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
  38% {
    opacity: 0;
    transform: scale(1.02);
  }
  100% {
    opacity: 0;
    transform: scale(1.06);
  }
}

.ct24-login-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(15, 23, 42, var(--ct24-hero-scrim-a0)) 0%,
      rgba(15, 23, 42, var(--ct24-hero-scrim-a1)) var(--ct24-hero-scrim-mid-stop),
      rgba(15, 23, 42, var(--ct24-hero-scrim-a2)) 100%
    ),
    radial-gradient(
      ellipse 90% 70% at 50% 20%,
      transparent 0%,
      rgba(15, 23, 42, var(--ct24-hero-scrim-radial)) 100%
    );
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ct24-login-hero__slide {
    animation: none;
    opacity: 0;
    transform: none;
  }
  .ct24-login-hero__slide--1 {
    opacity: 1;
  }
}

.ct24-login__main {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.ct24-login__card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--ct24-ui-shell-radius-lg);
  padding: 36px 28px 32px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 12px 48px rgba(0, 0, 0, 0.2),
    0 0 0 1.5px var(--ct24-ui-accent-ring),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  border: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ct24-login__kicker {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: #6b7280;
}

.ct24-login__brand {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  line-height: 1.2;
}

.ct24-login__sub {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: center;
  color: #5f6368;
}

/* —— Tab-Umschalter: Gast / Google / SMS —— */
.ct24-login-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 16px;
}

.ct24-login-switch--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ct24-login-switch--3 .ct24-login-switch__btn {
  min-height: 58px;
  padding: 8px 6px;
}

.ct24-login-switch--3 .ct24-login-switch__title {
  font-size: 0.8125rem;
}

.ct24-login-switch--3 .ct24-login-switch__hint {
  font-size: 0.625rem;
}

.ct24-login-switch__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  margin: 0;
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  font: inherit;
  cursor: pointer;
  color: #374151;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.ct24-login-switch__btn:hover {
  border-color: #d1d5db;
  background: #f3f4f6;
}

.ct24-login-switch__btn:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

.ct24-login-switch__btn.is-active {
  border-color: #1a73e8;
  background: #e8f0fe;
  box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.25);
}

.ct24-login-switch__title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ct24-login-switch__hint {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ct24-login-switch__btn.is-active .ct24-login-switch__hint {
  color: #1967d2;
}

.ct24-login-panels {
  margin: 0 0 4px;
}

.ct24-login-panel__lead {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: center;
  color: #6b7280;
}

.ct24-login-panel__lead--welcome {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #374151;
}

.ct24-login-guest-restore {
  margin-top: 4px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 12px;
  background: rgba(248, 250, 252, 0.95);
}

.ct24-login-guest-restore__summary {
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 650;
  color: #475569;
  list-style-position: outside;
}

.ct24-login-guest-restore__summary::-webkit-details-marker {
  color: #64748b;
}

.ct24-login-guest-existing {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ct24-login-guest-existing--restore {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ct24-login__already {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #e8f0fe;
  border: 1px solid rgba(26, 115, 232, 0.2);
  font-size: 0.875rem;
  line-height: 1.45;
  color: #174ea6;
}

.ct24-login__already[hidden] {
  display: none !important;
}

.ct24-login__already a {
  color: #1967d2;
  font-weight: 600;
  text-decoration: none;
}

.ct24-login__already a:hover {
  text-decoration: underline;
}

/* Im Stil des offiziellen „Sign in with Google“: weiß, Rahmen, farbiges G */
.ct24-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 20px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1f1f1f;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.ct24-btn-google:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #d2d4d7;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.18);
}

.ct24-btn-google:active:not(:disabled) {
  background: #f1f3f4;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
}

.ct24-btn-google:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

.ct24-btn-google:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.ct24-btn-google__icon {
  flex-shrink: 0;
  display: block;
}

.ct24-login__err {
  margin: 16px 0 0;
  min-height: 1.25em;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #c5221f;
  text-align: center;
}

.ct24-login__err:empty {
  min-height: 0;
  margin-top: 8px;
}

.ct24-login__hint {
  margin: 20px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: center;
  color: #80868b;
}

.ct24-login__hint a {
  color: #5f6368;
  font-weight: 500;
}

.ct24-login__hint a:hover {
  color: #1f1f1f;
}

.ct24-login__credits {
  margin: 14px 0 0;
  font-size: 0.625rem;
  line-height: 1.5;
  text-align: center;
  color: rgba(95, 99, 104, 0.92);
}

.ct24-login__credits a {
  color: #5f6368;
  font-weight: 500;
  white-space: nowrap;
}

.ct24-login__credits a:hover {
  color: #1f1f1f;
}

.ct24-login__already p {
  margin: 0;
}

.ct24-login__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ct24-login__divider::before,
.ct24-login__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.12), transparent);
}

.ct24-login-phone {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ct24-login-phone__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
}

.ct24-login-phone__label--code {
  margin-top: 4px;
}

.ct24-login__input {
  width: 100%;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.9375rem;
  color: #1f1f1f;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.ct24-login__input::placeholder {
  color: #9ca3af;
}

.ct24-login__input:hover:not(:disabled) {
  border-color: #d2d4d7;
}

.ct24-login__input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18);
}

.ct24-login-recaptcha {
  min-height: 0;
  overflow: hidden;
}

.ct24-btn-sms {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 11px 18px;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  background: #eef2ff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #3730a3;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.ct24-btn-sms--primary {
  background: #4f46e5;
  border-color: #4338ca;
  color: #fff;
}

.ct24-btn-sms:hover:not(:disabled) {
  background: #e0e7ff;
  border-color: #a5b4fc;
}

.ct24-btn-sms--primary:hover:not(:disabled) {
  background: #4338ca;
  border-color: #3730a3;
}

.ct24-btn-sms:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

.ct24-btn-sms:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* —— Dev: Hero-Hintergrund-Inspector (nur sichtbar wenn Script aktiv) —— */
.ct24-hero-inspect-tab {
  position: fixed;
  left: 0;
  bottom: 80px;
  z-index: 9998;
  padding: 6px 10px;
  border: none;
  border-radius: 0 8px 8px 0;
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  -webkit-tap-highlight-color: transparent;
}

.ct24-hero-inspect-tab:hover {
  background: rgba(30, 41, 59, 0.95);
}

.ct24-hero-inspect {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
  width: min(320px, calc(100vw - 24px));
  max-height: min(78vh, 520px);
  overflow: auto;
  padding: 12px 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  color: #e2e8f0;
  font-size: 0.75rem;
  line-height: 1.35;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  -webkit-overflow-scrolling: touch;
}

.ct24-hero-inspect[hidden] {
  display: none !important;
}

.ct24-hero-inspect h2 {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f8fafc;
}

.ct24-hero-inspect__sub {
  margin: 0 0 10px;
  font-size: 0.6875rem;
  color: #94a3b8;
}

.ct24-hero-inspect__row {
  margin: 0 0 10px;
}

.ct24-hero-inspect__row label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-weight: 600;
  color: #cbd5e1;
}

.ct24-hero-inspect__row input[type='range'] {
  width: 100%;
  accent-color: #38bdf8;
}

.ct24-hero-inspect__val {
  font-variant-numeric: tabular-nums;
  color: #7dd3fc;
  font-weight: 600;
}

.ct24-hero-inspect__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ct24-hero-inspect__actions button {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #1e293b;
  color: #e2e8f0;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
}

.ct24-hero-inspect__actions button:hover {
  background: #334155;
}

.ct24-hero-inspect__out {
  margin: 10px 0 0;
  padding: 8px;
  width: 100%;
  min-height: 72px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  color: #a5f3fc;
  font-family: ui-monospace, monospace;
  font-size: 0.625rem;
  line-height: 1.4;
  resize: vertical;
}

.ct24-hero-inspect__hint {
  margin: 8px 0 0;
  font-size: 0.625rem;
  color: #64748b;
}
