@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 {
      font-family: inherit;
      outline: none;
    }

    button, input { font-family: inherit; }

    .auth-page {
      width: 100%;
      height: 100dvh;
      min-height: 100dvh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 14px;
      position: relative;
      overflow: hidden;
    }

    .auth-page__bg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
    }

    .auth-page__overlay {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(120deg, rgba(5,150,105,.82), rgba(5,150,105,.35)),
        radial-gradient(circle at 80% 20%, rgba(167,243,208,.35), transparent 30%);
      z-index: 1;
    }

    .auth-card {
      position: relative;
      z-index: 2;
      width: min(92vw, 430px);
      max-height: calc(100dvh - 28px);
      padding: clamp(18px, 3vh, 32px) clamp(22px, 3vw, 36px);
      border-radius: 24px;
      background: rgba(255,255,255,.95);
      backdrop-filter: blur(18px);
      border: 1px solid rgba(255,255,255,.6);
      box-shadow: 0 24px 70px rgba(0,0,0,.25);
      overflow: hidden;
    }

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

    .auth-card__sub {
      font-size: clamp(12px, 1.8vh, 14px);
      color: #64748B;
      line-height: 1.4;
      margin-bottom: clamp(12px, 2vh, 18px);
    }

    .auth-form {
      display: flex;
      flex-direction: column;
      gap: clamp(8px, 1.5vh, 14px);
    }

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

    .field label {
      font-size: clamp(11px, 1.5vh, 13px);
      font-weight: 600;
      color: #475569;
    }

    .field input {
      width: 100%;
      height: clamp(38px, 5.4vh, 46px);
      padding: 0 14px;
      border-radius: 12px;
      border: 1px solid #E2E8F0;
      background: #F8FAFC;
      color: #0F172A;
      font-size: clamp(12px, 1.6vh, 14px);
    }

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

    .auth-forgot {
      align-self: flex-end;
      margin-top: -5px;
      font-size: clamp(10px, 1.4vh, 12px);
      color: #059669;
      font-weight: 600;
    }

    .auth-check {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: clamp(10px, 1.4vh, 12px);
      color: #64748B;
    }

    .auth-check input[type=checkbox] {
      width: 14px;
      height: 14px;
      flex: 0 0 14px;
    }

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

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

    .google-btn {
      width: 100%;
      height: 46px;
      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: 14px;
      font-size: clamp(11px, 1.5vh, 13px);
      color: #64748B;
      text-align: center;
    }

    .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;
    }

    @media (max-height: 720px) {
      .auth-card {
        width: min(90vw, 410px);
        padding: 18px 30px;
      }

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

      .auth-card__sub {
        margin-bottom: 10px;
      }

      .auth-form {
        gap: 8px;
      }

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

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

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