@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800&family=Varela+Round&display=swap');

    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
      font-size: 16px;
    }

    body {
      font-family: var(--font-primary);
      color: #0F172A;
      background: #FFFBFA;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }

    img {
      display: block;
      max-width: 100%;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    button {
      cursor: pointer;
      border: none;
      background: none;
      font-family: inherit;
    }

    input,
    select {
      font-family: inherit;
      outline: none;
    }

    button, input, select { font-family: inherit; }

    .auth-page {
      width: 100%;
      height: 100dvh;
      min-height: 100dvh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: clamp(10px, 2vw, 20px);
      position: relative;
      overflow: hidden;

      background:
        radial-gradient(circle at top left, rgba(167, 243, 208, .7), transparent 35%),
        linear-gradient(135deg, #059669 0%, #047857 45%, #FFFBFA 45%, #ffffff 100%);
    }

    .auth-page__bg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: .15;
      filter: blur(2px);
      z-index: 0;
    }

    .auth-page__overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, rgba(5,150,105,.8), rgba(5,150,105,.3));
      z-index: 1;
    }

    .auth-page::before,
    .auth-page::after {
      content: "";
      position: absolute;
      border-radius: 50%;
      z-index: 1;
    }

    .auth-page::before {
      width: clamp(200px, 30vw, 380px);
      height: clamp(200px, 30vw, 380px);
      background: rgba(167, 243, 208, .25);
      top: -120px;
      right: -100px;
    }

    .auth-page::after {
      width: clamp(140px, 20vw, 240px);
      height: clamp(140px, 20vw, 240px);
      background: rgba(255,255,255,.2);
      bottom: -80px;
      left: -60px;
    }

    .auth-card {
      position: relative;
      z-index: 2;
      width: min(92vw, 440px);
      max-height: calc(100dvh - 24px);
      padding: clamp(16px, 2.5vh, 26px) clamp(20px, 2.5vw, 32px);
      border-radius: 24px;
      background: rgba(255,255,255,.95);
      backdrop-filter: blur(18px);
      border: 1px solid rgba(255,255,255,.6);
      box-shadow: 0 20px 60px rgba(0,0,0,.25);
      display: flex;
      flex-direction: column;
      justify-content: center;
      overflow: hidden;
    }

    .auth-card::before {
      content: "MindSpace";
      display: inline-flex;
      align-self: flex-start;
      padding: 6px 12px;
      margin-bottom: 8px;
      border-radius: 999px;
      background: #F0FDF4;
      font-size: 11px;
      font-weight: 700;
      color: #059669;
    }

    .auth-card__title {
      font-family: 'Varela Round', sans-serif;
      font-size: clamp(22px, 3.2vh, 30px);
      font-weight: 700;
      color: #0F172A;
      margin-bottom: 4px;
    }

    .auth-card__title::after {
      content: "Create your secure account to continue your wellness journey.";
      display: block;
      margin-top: 6px;
      font-size: clamp(11px, 1.6vh, 13px);
      color: #64748B;
      line-height: 1.4;
    }

    .auth-form {
      display: flex;
      flex-direction: column;
      gap: clamp(6px, 1.2vh, 10px);
      margin-top: 12px;
    }

    .field {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .field label {
      font-size: clamp(10px, 1.4vh, 12px);
      font-weight: 600;
      color: #475569;
    }

    .field input,
    .field select {
      width: 100%;
      height: clamp(34px, 4.8vh, 42px);
      padding: 0 12px;
      border-radius: 12px;
      border: 1px solid #E2E8F0;
      background: #F8FAFC;
      font-size: clamp(11px, 1.5vh, 13px);
      color: #0F172A;
    }

    .field input:focus,
    .field select:focus {
      border-color: #10B981;
      box-shadow: 0 0 0 3px rgba(16,185,129,.12);
      background: #ffffff;
    }

    .auth-check {
      display: flex;
      align-items: flex-start;
      gap: 6px;
      font-size: clamp(10px, 1.3vh, 11px);
      color: #64748B;
      line-height: 1.45;
    }

    .auth-check input {
      width: 13px;
      height: 13px;
      margin-top: 2px;
      flex: 0 0 13px;
      accent-color: #059669;
    }

    .btn--auth {
      width: 100%;
      height: clamp(34px, 5vh, 44px);
      border-radius: 999px;
      background: linear-gradient(135deg, #059669, #10B981);
      color: #fff;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 4px 16px rgba(5,150,105,0.25);
    }

    .or-divider {
      display: flex;
      align-items: center;
      gap: 14px;
      color: #94A3B8;
      font-size: 10px;
      opacity: .65;
      margin: 8px 0 0;
    }

    .or-divider::before,
    .or-divider::after {
      content: "";
      flex: 1;
      height: 1px;
      background: #E2E8F0;
    }

    .google-form {
      margin-top: 8px;
    }

    .google-btn {
      width: 100%;
      height: clamp(34px, 5vh, 44px);
      border: 1px solid #E2E8F0;
      border-radius: 12px;
      background: #ffffff;
      color: #1E293B;
      font-weight: 600;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      cursor: pointer;
      text-decoration: none;
    }

    .google-icon {
      width: 20px;
      height: 20px;
      object-fit: contain;
      display: block;
    }

    .auth-switch {
      margin-top: 10px;
      font-size: clamp(10px, 1.3vh, 12px);
      text-align: center;
      color: #64748B;
    }

    .auth-switch a {
      color: #059669;
      font-weight: 700;
    }

    .message {
      padding: 10px 12px;
      border-radius: 10px;
      background: #fee2e2;
      color: #991b1b;
      font-size: 13px;
      margin-bottom: 8px;
    }

    .message.success {
      background: #dcfce7;
      color: #166534;
    }

    @media (max-height: 720px) {
      .auth-card {
        width: min(90vw, 420px);
        padding: 14px 26px;
      }

      .auth-form {
        gap: 5px;
      }

      .field input,
      .field select,
      .btn--auth,
      .google-btn {
        height: 32px;
      }

      .google-form {
        margin-top: 6px;
      }

      .auth-switch {
        margin-top: 6px;
      }
    }

    @media (max-width: 480px) {
      .auth-card {
        width: 100%;
        padding: 16px;
        border-radius: 20px;
      }

      .auth-card__title {
        font-size: 22px;
      }
    }
