:root {
  --navy: #0b1220;
  --gradient: linear-gradient(135deg, #ff5f2e 0%, #e040a0 35%, #7b3fe4 65%, #007bff 100%);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--navy);
  background-image: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(123, 63, 228, 0.18) 0%, transparent 70%);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}
.card {
  position: relative;
  width: min(440px, 92vw);
  padding: 2.5rem 2rem 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  text-align: center;
}
.card--wide { width: min(520px, 94vw); }
.km0-lang-switch {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  font-weight: 500;
}
.km0-lang-switch__btn {
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font: inherit;
  padding: 6px 10px;
  transition: color 0.2s ease, background 0.2s ease;
}
.km0-lang-switch__btn:hover { color: #fff; }
.km0-lang-switch__btn--active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.km0-lang-switch__btn:focus-visible {
  outline: 2px solid #7b3fe4;
  outline-offset: 2px;
}
.logo {
  width: min(192px, 44vw);
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 0 24px rgba(123, 63, 228, 0.35));
}
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 0.75rem;
}
h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline {
  margin: 0 0 1.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.intro {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.5;
}
.theme-form-row { margin: 14px auto; max-width: 320px; }
.dex-btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding: 0;
  width: 100%;
}
.dex-btn:focus { outline: 2px solid #7b3fe4; outline-offset: 2px; }
.theme-btn-provider {
  background: #ffffff;
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: #0b1220;
  min-height: 44px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.theme-btn-provider:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transform: scale(1.02);
}
.dex-btn-icon {
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px;
  border-radius: 9999px 0 0 9999px;
  flex-shrink: 0;
  height: 44px;
  margin-right: 8px;
  width: 44px;
}
.dex-btn-icon--google {
  background-color: #ffffff;
  background-image: url(https://cloud.km0digital.com/dex/static/img/google-icon.svg);
}
.dex-btn-text {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  padding-right: 12px;
  text-align: center;
}
.landing-divider {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 1.25rem 0 0.75rem;
  text-transform: uppercase;
}
.btn-local, .btn-secondary {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  justify-content: center;
  margin: 0 auto;
  max-width: 320px;
  padding: 0.85rem 2rem;
  text-decoration: none;
  transition: background 0.35s var(--ease);
  width: 100%;
}
.btn-local:hover, .btn-secondary:hover { background: rgba(255, 255, 255, 0.06); }
.btn-primary {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 9999px;
  color: #0b1220;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  justify-content: center;
  padding: 0.85rem 2rem;
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  width: 100%;
}
.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: scale(1.02);
}
.service-grid {
  display: grid;
  gap: 0.75rem;
  max-width: 320px;
  margin: 0 auto;
  text-align: left;
}
.service-tile {
  display: block;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.service-tile:hover {
  border-color: rgba(123, 63, 228, 0.45);
  background: rgba(123, 63, 228, 0.1);
}
.service-tile strong { display: block; font-size: 1rem; margin-bottom: 0.25rem; }
.service-tile span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }
.register-form { text-align: left; max-width: 320px; margin: 0 auto; }
.field { margin-bottom: 0.85rem; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.35rem;
}
.field input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
}
.field input:focus { outline: none; border-color: #7b3fe4; }
.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  padding-left: 1rem;
}
.form-error, .success-banner {
  display: none;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.4;
}
.form-error--visible, .success-banner--visible { display: block; }
.form-error {
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ffb4b4;
}
.success-banner {
  background: rgba(56, 178, 72, 0.15);
  border: 1px solid rgba(56, 178, 72, 0.35);
  color: #9ae6b4;
}
.pricing-notice {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(123, 63, 228, 0.12);
  border: 1px solid rgba(123, 63, 228, 0.25);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: left;
}
.pricing-notice a { color: #b794f6; text-decoration: none; font-weight: 500; }
.text-link, .signin-link, .register-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
.text-link:hover, .signin-link:hover, .register-link:hover { color: #7b3fe4; }
.logout-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 320px;
  margin: 0 auto;
}
footer {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}
footer a { color: rgba(255, 255, 255, 0.55); text-decoration: none; }
footer a:hover { color: #7b3fe4; }
