body {
      align-items: center;
      background-color: #f4f7fb;
      color: #202124;
      display: flex;
      font-family: "Inter", sans-serif;
      justify-content: center;
      margin: 0;
      min-height: 100dvh;
      padding: 24px;
      box-sizing: border-box;
    }
    .container {
      box-sizing: border-box;
      max-width: 380px;
      padding: 32px 24px;
      text-align: center;
      width: 100%;
    }
    img.logo {
      margin-bottom: 24px;
      width: 92px;
    }
    h1 {
      font-size: clamp(2rem, 8vw, 2.35rem);
      line-height: 1.08;
      margin: 0 0 14px;
    }
    .auth-subtitle {
      color: #60646c;
      margin: 0 0 24px;
    }
    #login-form {
      display: grid;
      gap: 12px;
    }
    input, button {
      border: 1px solid #d5d8de;
      border-radius: 8px;
      box-sizing: border-box;
      font-size: 1rem;
      margin: 0;
      padding: 13px 14px;
      width: 100%;
    }
    input:focus {
      border-color: #ff6f3c;
      box-shadow: 0 0 0 3px rgba(255, 111, 60, 0.14);
      outline: none;
    }
    button {
      background: #ff6f3c;
      border: none;
      color: white;
      font-weight: 750;
      cursor: pointer;
      transition: background 0.2s ease-in-out;
    }
    button:hover {
      background: #ff4e00;
    }
    #error-box {
      color: red;
      font-size: 0.9rem;
      min-height: 0;
      margin: 0;
    }
    #toggle-mode {
      color: #ff6f3c;
      cursor: pointer;
      font-size: 0.9rem;
      margin: 28px 0 0;
      display: inline-block;
    }
    #forgot-password {
      background: transparent;
      color: #ff6f3c;
      padding: 4px;
      width: auto;
    }
    .auth-footer {
      color: #777;
      font-size: 0.8rem;
      line-height: 1.45;
      margin: 28px 0 0;
    }

    /* Password strength meter */
    #strength-wrap {
      margin-top: 6px;
      width: 100%;
    }
    #strength-meter-bg {
      background: #eee;
      border-radius: 4px;
      height: 6px;
      overflow: hidden;
      position: relative;
    }
    #strength-meter-fill {
      height: 100%;
      width: 0%;
      transition: width 0.25s ease, background-color 0.25s ease;
    }
    #strength-label {
      text-align: right;
      font-size: 0.8rem;
      color: #555;
      margin-top: 3px;
    }

    #magic-toggle {
      align-items: center;
      background: #f8f9fb;
      border: 1px solid #d5d8de;
      border-radius: 8px;
      box-sizing: border-box;
      cursor: pointer;
      display: flex;
      gap: 16px;
      justify-content: space-between;
      min-height: 58px;
      padding: 10px 12px 10px 14px;
      text-align: left;
    }
    .magic-copy {
      display: grid;
      gap: 2px;
    }
    .magic-copy strong {
      font-size: 0.95rem;
    }
    .magic-copy small {
      color: #717680;
      font-size: 0.78rem;
    }
    #magic-link {
      appearance: none;
      -webkit-appearance: none;
      background: #c9cdd4;
      border: 0;
      border-radius: 999px;
      cursor: pointer;
      flex: 0 0 auto;
      height: 26px;
      margin: 0;
      padding: 0;
      position: relative;
      transition: background 0.18s ease;
      width: 46px;
    }
    #magic-link::after {
      background: #fff;
      border-radius: 50%;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
      content: "";
      height: 20px;
      left: 3px;
      position: absolute;
      top: 3px;
      transition: transform 0.18s ease;
      width: 20px;
    }
    #magic-link:checked {
      background: #ff6f3c;
    }
    #magic-link:checked::after {
      transform: translateX(20px);
    }
    #magic-toggle:has(#magic-link:checked) {
      background: #fff4ef;
      border-color: #ff9b77;
    }
    @media (max-width: 480px) {
      body {
        padding: 18px;
      }
      .container {
        padding: 24px 4px;
      }
    }
