

  @font-face {
    font-family: "Alata";
    src: url("/Alata-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
  }
  :root {
    color-scheme: light;
    --background: #ffffff;
    --foreground: #000050;
    --card: #ffffff;
    --card-foreground: #000050;
    --primary: #000050;
    --primary-foreground: #ffffff;
    --link: #000050;
    --secondary: #f2f2f7;
    --muted: #f2f2f7;
    --muted-foreground: #4d4d7d;
    --border: #d9d9e6;
    --input: #d9d9e6;
    --ring: #000050;
    --destructive: #e7000b;
    --success: #16803c;
    --radius: 0.5rem;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  }
  .page-decoration {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .dot { position: absolute; border-radius: 50%; }
  .dot-top-mint {
    width: 360px; height: 360px; left: -150px; top: -170px;
    background: #08FFB2;
  }
  .dot-top-navy {
    width: 70px; height: 70px; left: 170px; top: 220px;
    background: #000050;
  }
  .dot-bottom-mint {
    width: 260px; height: 260px; right: -80px; bottom: -100px;
    background: #08FFB2;
  }
  .dot-bottom-navy {
    width: 34px; height: 34px; right: 230px; bottom: 130px;
    background: #000050;
  }
  /* Keep the motif inside the wider tablet gutters. The desktop positions above
     remain unchanged once there is enough room for the full-size circles. */
  @media (min-width: 641px) and (max-width: 900px) {
    .dot-top-mint { width: 180px; height: 180px; left: -100px; top: -90px; }
    .dot-top-navy { width: 40px; height: 40px; left: 40px; top: 150px; }
    .dot-bottom-mint { width: 130px; height: 130px; right: -65px; bottom: -50px; }
    .dot-bottom-navy { width: 24px; height: 24px; right: 40px; bottom: 100px; }
  }
  @media (max-width: 640px) {
    .dot-top-mint { width: 144px; height: 144px; left: -90px; top: -72px; }
    .dot-top-navy { width: 28px; height: 28px; left: 12px; top: 105px; }
    .dot-bottom-mint, .dot-bottom-navy { display: none; }
  }

  * { box-sizing: border-box; }
  html { min-height: 100%; background: var(--background); }
  body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: safe center;
    gap: 1.5rem;
    padding: 2rem 1rem;
    background: var(--background);
    color: var(--foreground);
    font: 15px/1.5 "Alata", Arial, sans-serif;
  }
  .logo {
    display: block;
    width: 13rem;
    height: auto;
    position: relative;
    z-index: 1;
  }
  .card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    color: var(--card-foreground);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
  }
  .card h1 {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    color: var(--card-foreground);
    -webkit-text-stroke: 0.5px currentColor;
    letter-spacing: 0.01em;
  }
  form { display: grid; gap: 1rem; margin: 0; }
  label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--card-foreground);
  }
  input {
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    font: inherit;
    background: var(--background);
    color: var(--foreground);
    border: 1px solid var(--input);
    border-radius: calc(var(--radius) - 2px);
  }
  input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 15%, transparent);
  }
  button {
    margin-top: 0.5rem;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    width: 100%;
    color: var(--primary-foreground);
    background: var(--primary);
    border: 1px solid transparent;
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    transition: filter 120ms ease, background-color 120ms ease;
  }
  button:hover { filter: brightness(0.96); }
  button:focus-visible, .text-link:focus-visible, .lang-switcher a:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
  }
  button:disabled { opacity: 0.6; cursor: default; }
  .text-link {
    display: block;
    margin-top: 1rem;
    color: var(--link);
    text-align: center;
  }
  [hidden] { display: none !important; }
  .flow-copy { margin: 0 0 1.25rem; }

  /* In-page language switcher ( i18n) — a small muted row of ?lang= links
     under the card; the active language uses the Tiketo navy foreground. */
  .lang-switcher {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    font-size: 0.85rem;
  }
  .lang-switcher a { color: var(--muted-foreground); text-decoration: none; }
  .lang-switcher a:hover { color: var(--foreground); text-decoration: underline; }
  .lang-switcher strong { color: var(--link); font-weight: 700; }

  .msg-banner {
    display: none;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.25rem;
    padding: 0.8rem 1rem;
    border: 1px solid color-mix(in srgb, var(--primary-foreground) 14%, transparent);
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--primary-foreground);
    font-weight: 600;
    font-size: 0.95rem;
  }
  .msg-banner.show { display: flex; }
  .msg-banner svg { flex: none; }

  /* "or" divider between the alternative sign-in buttons and the email/password form. */
  .divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: var(--muted-foreground);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .divider::before,
  .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
  }
  /* Google sign-in button follows Google's brand guidance (white surface, gray
     border, "G" mark) rather than Tiketo's primary colour — intentional and
     expected for a third-party identity button. */
  button.google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0;
    color: #3c4043;
    background: #fff;
    border: 1px solid #dadce0;
    font-weight: 600;
  }
  button.google:hover { background: #f7f8f8; }
  button.google svg { flex: none; }


  .logo, .account-logo { width: auto; font-size: 1.75rem; text-decoration: none; color: var(--foreground); }
  button.passkey-login { color: var(--foreground); background: var(--secondary); border: 1px solid var(--border); }
  input { min-width: 0; width: 100%; }
  .card { overflow-wrap: anywhere; }
  @media (max-width: 480px) { dl, dl.consent-meta { grid-template-columns: 1fr; gap: 0.25rem; } dd { margin-bottom: 0.5rem; } }
