:root {
  --ig-blue: #1877c9;
  --ig-blue-bright: #4599ff;
  --bg-black: #000000;
  --panel-line: #262626;
  --input-bg: #121212;
  --input-border: #363636;
  --text-grey: #a8a8a8;
}

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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background: var(--bg-black);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

.page {
  display: flex;
  min-height: 100vh;
}

/* ---------------- LEFT HERO PANEL ---------------- */
.hero-panel {
  flex: 1 1 50%;
  background: var(--bg-black);
  border-right: 1px solid var(--panel-line);
  display: flex;
  align-items: center;
  padding: 60px 60px 60px 70px;
}

.hero-content {
  max-width: 520px;
}

.ig-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 28px;
}

.hero-text {
  font-size: 38px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 34px;
}

.gradient-text {
  background: linear-gradient(90deg, #ff5a3c, #ff2d75, #c92fd8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 400;
}

.collage {
  position: relative;
  width: 330px;
  height: 270px;
}

.story-card {
  position: absolute;
  width: 150px;
  height: 250px;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card1 {
  left: 0;
  top: 0;
  transform: rotate(-10deg);
  z-index: 1;
}

.card2 {
  left: 75px;
  top: -18px;
  transform: rotate(-2deg);
  z-index: 2;
}

.card3 {
  left: 150px;
  top: 6px;
  transform: rotate(9deg);
  z-index: 1;
}

.story-progress {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  z-index: 3;
}

.story-progress::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 60%;
  background: #fff;
  border-radius: 2px;
}

.reaction-bubble {
  position: absolute;
  left: 60px;
  top: -14px;
  background: #fff;
  color: #111;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 16px;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.star-badge {
  position: absolute;
  right: -12px;
  top: 70px;
  background: #12b76a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.heart-float {
  position: absolute;
  left: -14px;
  bottom: 60px;
  width: 26px;
  height: 26px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.heart-float svg {
  width: 15px;
  height: 15px;
  fill: #ff3040;
}

.avatar-ring {
  position: absolute;
  right: -4px;
  bottom: -10px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(45deg, #ffdb8c, #ff5a3c, #c92fd8);
  z-index: 5;
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #000;
  object-fit: cover;
}

.bottom-icons {
  position: absolute;
  left: 165px;
  bottom: -2px;
  display: flex;
  gap: 6px;
  z-index: 4;
}

.bottom-icons span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-icons svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

/* ---------------- RIGHT LOGIN PANEL ---------------- */
.login-panel {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-form-wrap {
  width: 100%;
  max-width: 380px;
}

.login-form-wrap h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-form-wrap input {
  width: 100%;
  padding: 16px 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.login-form-wrap input::placeholder {
  color: var(--text-grey);
}

.login-form-wrap input:focus {
  border-color: #6b6b6b;
}

.login-btn {
  margin-top: 2px;
  width: 100%;
  padding: 14px;
  background: var(--ig-blue);
  color: #bcd6f2;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.login-btn:hover {
  background: #1e6fb8;
  color: #fff;
}

.forgot {
  display: block;
  text-align: center;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  margin-top: 20px;
}

.forgot:hover {
  text-decoration: underline;
}

.gap-space {
  height: 26px;
}

.fb-btn {
  width: 100%;
  padding: 13px;
  background: #1c1c1c;
  color: #fff;
  border: 1px solid var(--input-border);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.fb-btn:hover {
  background: #262626;
}

.fb-btn svg {
  width: 18px;
  height: 18px;
}

.create-btn {
  width: 100%;
  padding: 13px;
  background: transparent;
  color: var(--ig-blue-bright);
  border: 1px solid var(--ig-blue-bright);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 26px;
}

.create-btn:hover {
  background: rgba(69, 153, 255, 0.08);
}

.meta-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #e4e6eb;
  font-size: 15px;
  font-weight: 500;
}

.meta-logo .infinity {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

/* ---------------- RESPONSIVE (mobile) ---------------- */
@media (max-width: 900px) {
  .hero-panel {
    display: none;
  }
  .login-panel {
    flex: 1 1 100%;
    padding: 16px;
    align-items: flex-start;
    padding-top: calc(60px + env(safe-area-inset-top, 0px));
  }
  .login-form-wrap {
    max-width: 100%;
  }
  .login-form-wrap::before {
    content: "";
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto 30px;
    background: linear-gradient(45deg, #ffdb8c, #ff5a3c, #c92fd8);
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2.16c3.2 0 3.58.01 4.85.07 3.25.15 4.77 1.69 4.92 4.92.06 1.27.07 1.65.07 4.85s-.01 3.58-.07 4.85c-.15 3.23-1.66 4.77-4.92 4.92-1.27.06-1.64.07-4.85.07s-3.58-.01-4.85-.07c-3.26-.15-4.77-1.7-4.92-4.92-.06-1.27-.07-1.65-.07-4.85s.02-3.58.07-4.85c.15-3.23 1.66-4.77 4.92-4.92 1.27-.06 1.65-.07 4.85-.07zM12 0C8.74 0 8.33.01 7.05.07c-4.35.2-6.78 2.62-6.98 6.98C.01 8.33 0 8.74 0 12s.01 3.67.07 4.95c.2 4.36 2.62 6.78 6.98 6.98C8.33 23.99 8.74 24 12 24s3.67-.01 4.95-.07c4.35-.2 6.78-2.62 6.98-6.98.06-1.28.07-1.69.07-4.95s-.01-3.67-.07-4.95c-.2-4.35-2.62-6.78-6.98-6.98C15.67.01 15.26 0 12 0zm0 5.84A6.16 6.16 0 1 0 18.16 12 6.16 6.16 0 0 0 12 5.84zM12 16a4 4 0 1 1 4-4 4 4 0 0 1-4 4zm6.41-10.85a1.44 1.44 0 1 0 1.44 1.44 1.44 1.44 0 0 0-1.44-1.44z"/></svg>')
      center/contain no-repeat;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2.16c3.2 0 3.58.01 4.85.07 3.25.15 4.77 1.69 4.92 4.92.06 1.27.07 1.65.07 4.85s-.01 3.58-.07 4.85c-.15 3.23-1.66 4.77-4.92 4.92-1.27.06-1.64.07-4.85.07s-3.58-.01-4.85-.07c-3.26-.15-4.77-1.7-4.92-4.92-.06-1.27-.07-1.65-.07-4.85s.02-3.58.07-4.85c.15-3.23 1.66-4.77 4.92-4.92 1.27-.06 1.65-.07 4.85-.07zM12 0C8.74 0 8.33.01 7.05.07c-4.35.2-6.78 2.62-6.98 6.98C.01 8.33 0 8.74 0 12s.01 3.67.07 4.95c.2 4.36 2.62 6.78 6.98 6.98C8.33 23.99 8.74 24 12 24s3.67-.01 4.95-.07c4.35-.2 6.78-2.62 6.98-6.98.06-1.28.07-1.69.07-4.95s-.01-3.67-.07-4.95c-.2-4.35-2.62-6.78-6.98-6.98C15.67.01 15.26 0 12 0zm0 5.84A6.16 6.16 0 1 0 18.16 12 6.16 6.16 0 0 0 12 5.84zM12 16a4 4 0 1 1 4-4 4 4 0 0 1-4 4zm6.41-10.85a1.44 1.44 0 1 0 1.44 1.44 1.44 1.44 0 0 0-1.44-1.44z"/></svg>')
      center/contain no-repeat;
  }
  .login-form-wrap h2 {
    text-align: center;
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  .login-panel {
    padding: 12px;
  }
  .login-form-wrap input {
    padding: 14px 12px;
  }
}
