    :root {
      --accent: #00c896;
      --fg: #ffffff;
      --bg: #0c0c0c;
      --glass: rgba(16, 16, 16, .35);
      --glass-border: rgba(255, 255, 255, .14);
    }

    * {
      box-sizing: border-box
    }

    html,
    body {
      height: 100%
    }

    body {
      margin: 0;
      font-family: Inter, system-ui, Segoe UI, Roboto, sans-serif;
      color: var(--fg);
      background: var(--bg);
      overflow: hidden;
    }





    .bg {
      position: fixed;
      inset: 0;
      overflow: hidden;
      z-index: -2;
    }

    .bg video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: saturate(.9) contrast(1.05) brightness(.65);
    }

    .bg::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(1200px 600px at 50% 30%, rgba(0, 0, 0, .08), rgba(0, 0, 0, .55)),
        linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .55));
      z-index: 1;
      pointer-events: none;
    }


    .hero {
      position: relative;
      min-height: 100dvh;
      display: grid;
      place-items: center;
      padding: 24px;
      text-align: center;
    }

    .panel {
      max-width: min(760px, 92vw);
      padding: 28px 28px 32px;
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 24px;
      backdrop-filter: blur(10px) saturate(1.1);
      -webkit-backdrop-filter: blur(10px) saturate(1.1);
      box-shadow:
        0 10px 40px rgba(0, 0, 0, .35),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    }

    h1 {
      margin: 0 0 22px;
      line-height: 1.1;
      font-weight: 800;
      font-size: clamp(28px, 5vw, 44px);
    }

    .highlight {
      display: inline-block;
      background: var(--accent);
      color: #0f1a17;
      padding: .14em .36em;
      border-radius: 6px;
      transform: rotate(-2deg);
      font-weight: 800;
    }

    .tagline {
      margin: 0 0 28px;
      opacity: .9;
      font-size: clamp(14px, 2.4vw, 18px);
    }

    .cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 14px 22px;
      border-radius: 999px;
      background: var(--accent);
      color: #0f1a17;
      font-weight: 700;
      text-decoration: none;
      box-shadow: 0 8px 26px rgba(0, 200, 150, .35);
      transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
    }

    .cta:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 30px rgba(0, 200, 150, .45);
    }

    .cta:active {
      transform: translateY(0);
      opacity: .92;
    }

    .cta .arrow {
      font-size: 1.25em;
      line-height: 1
    }

    footer {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 12px;
      display: flex;
      gap: 14px;
      justify-content: center;
      align-items: center;
      padding: 0 14px;
      font-size: 14px;
      opacity: .9;
    }

    footer a {
      color: var(--accent);
      text-decoration: none;
      opacity: .9
    }

    footer a:hover {
      opacity: 1;
      text-decoration: underline
    }


    @supports (padding: env(safe-area-inset-bottom)) {
      footer {
        bottom: calc(12px + env(safe-area-inset-bottom));
      }

      .panel {
        padding-bottom: calc(32px + env(safe-area-inset-bottom)/2);
      }
    }

    .modal {
      display: none;
      /* тільки одне! */
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(6px);
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }

    .modal-content {
      width: 420px;
      background: rgba(20, 20, 20, 0.9);
      border-radius: 32px;
      padding: 40px 36px;
      position: relative;
      color: #fff;
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    }

    .close {
      position: absolute;
      top: 20px;
      right: 24px;
      font-size: 26px;
      cursor: pointer;
      color: #aaa;
    }

    .brand {
      text-align: center;
      font-size: 22px;
      font-weight: 700;
      margin-bottom: 24px;
    }

    .title {
      text-align: center;
      font-size: 20px;
      font-weight: 700;
      margin: 0;
    }

    .subtitle {
      text-align: center;
      font-size: 15px;
      color: #aaa;
      margin: 6px 0 20px;
    }

    label {
      font-size: 13px;
      color: #aaa;
      margin-top: 12px;
      margin-bottom: 6px;
      display: block;
    }

    .auth-input {
      width: 100%;
      padding: 14px 16px;
      border-radius: 24px;
      border: none;
      background: #0f0f0f;
      color: #fff;
      font-size: 15px;
    }

    .auth-input::placeholder {
      color: #777;
    }

    .btn-primary {
      width: 100%;
      margin-top: 18px;
      padding: 14px;
      border-radius: 28px;
      border: none;
      background: #00c896;
      color: #000;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
    }

    .link-forgot {
      display: block;
      text-align: right;
      margin-top: 8px;
      font-size: 14px;
      color: #00c896;
      text-decoration: none;
    }

    .switch-text {
      text-align: center;
      font-size: 14px;
      margin-top: 12px;
    }

    .switch-text a {
      color: #00c896;
      font-weight: 600;
      text-decoration: none;
    }

    .socials {
      margin-top: 24px;
      display: flex;
      justify-content: center;
      gap: 18px;
    }

    .social-btn {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 1px solid #444;
      background: #111;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    .social-btn img {
      width: 20px;
      height: 20px;
    }

    .auth-form {
      display: none;
    }

    .auth-form.active {
      display: block;
    }

    .error-banner {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      background: #ff4d4d;
      color: #fff;
      padding: 12px 24px;
      border-radius: 12px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
      font-weight: 600;
      z-index: 9999;
      text-align: center;
      min-width: 300px;
      animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
      from {
        transform: translate(-50%, -100%);
        opacity: 0;
      }

      to {
        transform: translate(-50%, 0);
        opacity: 1;
      }
    }