* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Georgia, "Times New Roman", serif;
}

body {
  min-height: 100vh;
  background: #eaeaea;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* MAIN CONTAINER */
.container {
  width: 900px;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 20px);
  background: #fff;
  display: flex;
  align-items: stretch;
  border-radius: 6px;
  overflow: auto;
  position: relative;
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

/* CLOSE ICON */
.close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 22px;
  color: #999;
  cursor: pointer;
}

/* LEFT IMAGE PANEL */
.left {
  flex: 0 0 520px; /* fixed column to ensure image can display fully */
  position: relative;
  align-self: stretch;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000;
  padding: 0;
}

.left-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 0;
  margin: 0;
}

.right { flex: 1 1 380px; }

.left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.left-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.left-content h2 {
  font-size: 26px;
  margin-bottom: 18px;
}

.left-content .signup-btn {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 10px 28px;
  border-radius: 22px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.left-content .signup-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* RIGHT FORM PANEL */
.right {
  width: 50%;
  padding: 36px;
}

.right h1 {
  font-size: 42px;
  margin-bottom: 6px;
}

.subtitle {
  font-size: 14px;
  color: #777;
  margin-bottom: 30px;
  font-family: Arial, sans-serif;
}

input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  border: 1px solid #d9d9d9;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

.checkbox {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 13px;
  margin: 12px 0 18px;
  font-family: Arial, sans-serif;
}

.checkbox input[type="checkbox"] {
  width: auto;
  height: auto;
  margin: 0;
  transform: scale(1);
}

.checkbox label {
  display: inline-block;
  white-space: nowrap;
  margin: 0;
}

.join {
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
}

.divider {
  display: flex;
  align-items: center;
  margin: 26px 0;
  font-size: 13px;
  color: #888;
  font-family: Arial, sans-serif;
}

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

.divider span {
  margin: 0 12px;
}

/* SOCIAL BUTTONS */
.social {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  cursor: pointer;
  font-family: Arial, sans-serif;
}

.google {
  background: #fff;
  border: 1px solid #ddd;
}

.apple {
  background: #000;
  color: #fff;
  border: none;
}

/* =======================
   HOVERS & TRANSITIONS
======================= */

.join,
.social,
.left-content button,
.close {
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.join:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  background: #111;
}
.join:active { transform: translateY(-1px); }

.social:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}
.social.google:hover { background:#f6f6f6; }
.social.apple:hover { filter: brightness(1.06); }

.left-content button:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

.left-img {
  transition: transform 0.6s ease;
}
.left:hover .left-img { transform: scale(1.03); }

input {
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.08s ease;
}
input:focus {
  outline: none;
  box-shadow: 0 6px 18px rgba(31,60,136,0.12);
  border-color: #1f3c88;
  transform: translateY(-1px);
}

.close:hover {
  color: #666;
  transform: rotate(90deg) scale(1.05);
}

.divider span { transition: color 0.18s ease; }
.divider:hover span { color: #444; }

/* RESPONSIVE */
@media (max-width: 850px) {
  .container {
    flex-direction: column;
    width: 95%;
    height: auto;
  }

  .left {
    width: 100%;
    height: 320px;
    background-position: center top;
    background-size: cover;
  }

  .right {
    width: 100%;
  }

  body {
    align-items: flex-start;
    padding: 12px;
  }

  .right h1 { font-size: 32px; }
}