 @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a0a1a;
  }

  /* ── Sky gradient ── */
  .scene {
    position: fixed;
    inset: 0;
    background:
      radial-gradient(ellipse 60% 40% at 75% 10%, #ff7043 0%, transparent 55%),
      radial-gradient(ellipse 50% 35% at 85% 5%,  #ff9800 0%, transparent 50%),
      linear-gradient(180deg,
        #1a0533 0%,
        #2d1b69 18%,
        #1e3a8a 38%,
        #1565c0 52%,
        #0d47a1 65%,
        #0a1628 100%
      );
    z-index: 0;
  }

  /* ── Stars ── */
  .stars {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }
  .star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation: twinkle var(--d, 3s) ease-in-out infinite;
    opacity: 0;
  }
  @keyframes twinkle {
    0%, 100% { opacity: 0; }
    50%       { opacity: var(--op, 0.8); }
  }

  /* ── Silhouette trees ── */
  .forest {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    z-index: 2;
    pointer-events: none;
  }

  /* Ground fill */
  .ground {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;
    z-index: 3;
    background: linear-gradient(180deg, #0d2b0a 0%, #061504 100%);
  }

  /* Undergrowth glow */
  .glow-strip {
    position: fixed;
    bottom: 16%;
    left: 0;
    right: 0;
    height: 8%;
    z-index: 4;
    background: radial-gradient(ellipse 80% 100% at 50% 100%,
      rgba(0,230,118,0.08) 0%, transparent 70%);
    pointer-events: none;
  }

  /* Red plants left */
  .plants {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 30%;
    height: 35%;
    z-index: 5;
    pointer-events: none;
    background:
      radial-gradient(ellipse 12% 40% at 8%  100%, #c62828 0%, transparent 60%),
      radial-gradient(ellipse 10% 35% at 16% 100%, #b71c1c 0%, transparent 60%),
      radial-gradient(ellipse 14% 45% at 24% 100%, #d32f2f 0%, transparent 55%),
      radial-gradient(ellipse  8% 30% at 4%  100%, #e53935 0%, transparent 60%);
  }

  /* Deer silhouette (CSS) */
  .deer-wrap {
    position: fixed;
    bottom: 18%;
    right: 9%;
    z-index: 6;
    pointer-events: none;
    transform: scaleX(-1);
  }
  .deer {
    width: 90px;
    height: 110px;
    position: relative;
    opacity: 0.85;
  }
  /* body */
  .deer::before {
    content: '';
    position: absolute;
    bottom: 22px;
    left: 10px;
    width: 64px;
    height: 38px;
    background: #1a0a00;
    border-radius: 50% 60% 50% 40%;
  }
  /* neck */
  .deer-neck {
    position: absolute;
    bottom: 52px;
    left: 48px;
    width: 14px;
    height: 30px;
    background: #1a0a00;
    border-radius: 6px 6px 4px 4px;
    transform: rotate(-10deg);
  }
  /* head */
  .deer-head {
    position: absolute;
    bottom: 78px;
    left: 44px;
    width: 22px;
    height: 16px;
    background: #1a0a00;
    border-radius: 50% 60% 40% 50%;
  }
  /* antlers */
  .deer-antler-l, .deer-antler-r {
    position: absolute;
    bottom: 90px;
    width: 3px;
    background: #1a0a00;
    border-radius: 2px;
  }
  .deer-antler-l { left: 46px; height: 22px; transform: rotate(-20deg); }
  .deer-antler-r { left: 58px; height: 18px; transform: rotate(15deg); }
  .deer-antler-l::before, .deer-antler-l::after,
  .deer-antler-r::before, .deer-antler-r::after {
    content: '';
    position: absolute;
    width: 3px;
    background: #1a0a00;
    border-radius: 2px;
  }
  .deer-antler-l::before { top: 4px; left: -8px; height: 14px; transform: rotate(-30deg); }
  .deer-antler-l::after  { top: 2px; left:  4px; height: 12px; transform: rotate(20deg); }
  .deer-antler-r::before { top: 3px; left: -7px; height: 12px; transform: rotate(-20deg); }
  .deer-antler-r::after  { top: 1px; left:  4px; height: 10px; transform: rotate(25deg); }
  /* legs */
  .deer-legs { position: absolute; bottom: 0; left: 14px; }
  .leg {
    display: inline-block;
    width: 6px;
    height: 24px;
    background: #1a0a00;
    border-radius: 3px 3px 2px 2px;
    margin: 0 4px;
    vertical-align: bottom;
  }
  .leg:nth-child(2) { height: 22px; }
  .leg:nth-child(3) { height: 20px; }
  .leg:nth-child(4) { height: 22px; }
  /* tail */
  .deer-tail {
    position: absolute;
    bottom: 40px;
    left: 70px;
    width: 10px;
    height: 8px;
    background: #3e1f00;
    border-radius: 50%;
  }

  /* Cyan mist right */
  .mist {
    position: fixed;
    bottom: 12%;
    right: 0;
    width: 28%;
    height: 30%;
    z-index: 5;
    background: radial-gradient(ellipse 80% 60% at 80% 80%,
      rgba(0,229,255,0.18) 0%, transparent 70%);
    pointer-events: none;
  }

  /* ── Card ── */
  .card-wrap {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 20px;
    padding: 40px 36px 32px;
    width: 340px;
    box-shadow:
      0 8px 40px rgba(0,0,0,0.5),
      inset 0 1px 0 rgba(255,255,255,0.15);
  }

  .card h1 {
    color: #fff;
    font-size: 1.65rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.02em;
    margin-bottom: 28px;
  }

  /* ── Inputs ── */
  .field {
    position: relative;
    margin-bottom: 14px;
  }
  .field input {
    width: 100%;
    padding: 13px 42px 13px 16px;
    background: rgba(255,255,255,0.88);
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    color: #333;
    outline: none;
    transition: background 0.2s, box-shadow 0.2s;
    font-family: inherit;
  }
  .field input::placeholder { color: #888; }
  .field input:focus {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 0 0 2px rgba(99,179,255,0.6);
  }
  .field-icon {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 1rem;
    pointer-events: none;
    line-height: 1;
  }
  /* password toggle */
  .field .toggle-pw {
    pointer-events: all;
    cursor: pointer;
    user-select: none;
  }

  /* ── Row: remember + forgot ── */
  .row-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0 18px;
  }
  .remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    cursor: pointer;
    user-select: none;
  }
  .remember input[type=checkbox] {
    width: 13px;
    height: 13px;
    accent-color: #63b3ff;
    cursor: pointer;
  }
  .forgot {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
  }
  .forgot:hover { color: #fff; }

  /* ── Login button ── */
  .btn-login {
    width: 100%;
    padding: 13px;
    background: #fff;
    color: #222;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.03em;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(255,255,255,0.15);
  }
  .btn-login:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 20px rgba(255,255,255,0.25);
  }
  .btn-login:active { transform: scale(0.98); }

  /* ── Divider ── */
  .divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 16px;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
  }
  .divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.2);
  }

  /* ── Social buttons ── */
  .social-row {
    display: flex;
    gap: 12px;
  }
  .btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
  }
  .btn-social:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.3);
  }
  .btn-social svg { flex-shrink: 0; }