* { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; }
  body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    background: #eceef2;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .card {
    width: 100%;
    max-width: 1080px;
    display: flex;
    background: #0a0a0a;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,0.25);
    min-height: 640px;
  }

  /* ===== Left: photo panel ===== */
  .photo-side {
    position: relative;
    flex: 1 1 46%;
    min-height: 640px;
    overflow: hidden;
    background: #000;
  }
  .photo-side img,
  .photo-side video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  .photo-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 35%);
    z-index: 1;
  }
  .shop-logo {
    position: absolute;
    left: 28px;
    bottom: 34px;
    z-index: 2;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 900;
    font-style: italic;
    font-size: clamp(48px, 9vw, 76px);
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 4px 18px rgba(0,0,0,0.5);
    transform: skewX(-4deg);
  }
  .shop-logo .accent-line {
    display: block;
    width: 70%;
    height: 6px;
    margin-top: -6px;
    background: #2fb8f0;
    border-radius: 3px;
    transform: skewX(10deg) rotate(-3deg);
  }

  /* ===== Right: form panel ===== */
  .form-side {
    flex: 1 1 54%;
    background: #0a0a0a;
    padding: clamp(24px, 4vw, 44px) clamp(24px, 6vw, 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .tabs {
    display: inline-flex;
    align-self: flex-end;
    background: #17181c;
    border-radius: 24px;
    padding: 5px;
    margin-bottom: 30px;
    gap: 4px;
  }
  .tabs a {
    border: none;
    background: transparent;
    color: #9a9ba3;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
  }
  .tabs a.active {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    color: #06202b;
  }

  h1 {
    color: #fff;
    font-size: clamp(24px, 4vw, 30px);
    font-weight: 700;
    margin-bottom: 28px;
  }

  .auth-message {
    color: #ff4d4f;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin: -18px 0 22px;
    display: none;
  }

  .row { display: flex; gap: 14px; margin-bottom: 14px; }
  .row .input-group { flex: 1; }

  .input-group {
    position: relative;
    background: #16171b;
    border: 1.5px solid #24252b;
    border-radius: 16px;
    margin-bottom: 14px;
    transition: border-color .15s ease;
  }
  .input-group:focus-within { border-color: #29b6f6; }

  .input-group.name-only input { padding-left: 18px; }

  .input-group svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #7d7e87;
    stroke-width: 1.8;
    pointer-events: none;
  }

  .input-group input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 16px 18px 16px 46px;
    font-size: 15px;
    color: #f2f2f4;
    font-family: inherit;
  }
  .input-group input::placeholder { color: #6c6d76; }

  .toggle-eye {
    position: absolute;
    right: 16px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 19px;
    height: 19px;
    cursor: pointer;
    stroke: #7d7e87;
  }

  .dive-btn {
    width: 100%;
    padding: 17px;
    margin-top: 8px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #57c8ff, #26aef0);
    color: #062230;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(41, 182, 246, 0.35);
  }
  .dive-btn:active { filter: brightness(0.96); }

  .forgot-row {
    text-align: right;
    margin: -6px 0 20px;
  }
  .forgot-link {
    color: #29b6f6;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
  }
  .forgot-link:hover { text-decoration: underline; }

  .signup-hint {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: #8a8b93;
  }
  .signup-hint a {
    color: #29b6f6;
    font-weight: 700;
    text-decoration: none;
  }
  .signup-hint a:hover { text-decoration: underline; }

  .divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #6c6d76;
    font-size: 13px;
    margin: 26px 0 20px;
  }
  .divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #24252b; }

  .social-row { display: flex; justify-content: center; gap: 16px; }
  .social-btn {
    flex: 1;
    max-width: 130px;
    height: 50px;
    border-radius: 14px;
    background: #16171b;
    border: 1.5px solid #24252b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .social-btn svg, .social-btn img { width: 20px; height: 20px; }

  /* ===== Desktop: CSS Grid — two independent boxes (left = image, right = form) ===== */
  @media (min-width: 861px) {
    .card {
      display: grid;
      grid-template-columns: 46% 54%;
      gap: 24px;
      padding: 20px;
    }
    .photo-side {
      min-height: 600px;
      border-radius: 20px;
    }
    .form-side {
      min-height: 600px;
      background: #111217;
      border-radius: 20px;
      padding: clamp(24px, 4vw, 44px) clamp(24px, 5vw, 56px);
    }
  }

  /* ===== Responsive (mobile — unchanged) ===== */
  @media (max-width: 860px) {
    .card { flex-direction: column; min-height: auto; }
    .photo-side {
      order: -1;
      flex: none;
      min-height: 0;
      height: auto;
      background: #000;
    }
    .photo-side img,
    .photo-side video {
      position: static;
      width: 100%;
      height: auto;
      object-fit: contain;
    }
    .form-side { flex: none; }
    .shop-logo { font-size: clamp(38px, 12vw, 56px); bottom: 22px; left: 22px; }
  }

  @media (max-width: 480px) {
    body { padding: 0; }
    .card { border-radius: 0; min-height: 100dvh; }
    .row { flex-direction: column; gap: 0; }
    .tabs { align-self: center; }
    h1 { text-align: center; }
    .social-row { flex-wrap: wrap; }
  }

  @media (max-width: 340px) {
    .input-group input { font-size: 16px; padding: 14px 16px 14px 42px; }
  }
