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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #0b1014;
  color: #f5f5f5;
  min-height: 100vh;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Main Split Layout --- */
.split-main {
  flex: 1;
  display: flex;
  border-bottom: 1px solid #262b30;
}

/* --- Left Showcase Pane --- */
.showcase-pane {
  flex: 1;
  background-color: #0b1014;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.brand-glyph {
  align-self: flex-start;
}

.showcase-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0 40px;
}

.hero-title {
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  font-weight: 500;
  line-height: 1.25;
  max-width: 440px;
  margin-bottom: 36px;
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(90deg, #ff5c00, #ff0069, #d300c5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Story Collage --- */
.collage-wrapper {
  position: relative;
  width: 360px;
  height: 350px;
}

.story-card {
  position: absolute;
  border-radius: 20px;
  overflow: visible;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

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

.card-left {
  width: 145px;
  height: 235px;
  left: 16px;
  top: 52px;
  transform: rotate(-7deg);
  z-index: 1;
}

.card-right {
  width: 145px;
  height: 235px;
  right: 16px;
  top: 52px;
  transform: rotate(7deg);
  z-index: 1;
}

.card-center {
  width: 195px;
  height: 315px;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  z-index: 3;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
}

.floating-badge {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.heart-badge {
  bottom: 34px;
  left: -18px;
  background: linear-gradient(135deg, #ff3040, #ff7a00);
}

.star-badge {
  top: 40px;
  right: -18px;
  background-color: #1cd14f;
  color: #ffffff;
  font-size: 16px;
}

.avatar-ring {
  position: absolute;
  bottom: 24px;
  right: -20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #feda75, #d62976, #962fbf);
}

.avatar-ring img {
  border-radius: 50%;
  border: 2px solid #0b1014;
}

.reaction-pill {
  position: absolute;
  top: 14px;
  left: -24px;
  background-color: #ffffff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 16px;
  display: flex;
  gap: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.story-reply-bar {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reply-pill {
  flex: 1;
  height: 28px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
}

.reply-heart {
  color: #ffffff;
  font-size: 18px;
}

/* --- Right Login Panel --- */
.login-pane {
  width: 480px;
  background-color: #152127;
  border-left: 1px solid #262b30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.login-box {
  width: 100%;
  max-width: 360px;
}

.mobile-glyph {
  display: none;
  justify-content: center;
  margin-bottom: 56px;
}

.login-heading {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #f5f5f5;
  text-align: left;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background-color: #1c2a33;
  border: 1px solid #374650;
  border-radius: 14px;
  color: #f5f5f5;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.field-wrap input::placeholder {
  color: #8e9ba4;
}

.field-wrap input:focus {
  border-color: #6b7d88;
}

.toggle-btn {
  display: none;
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #f5f5f5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  margin-top: 4px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background-color: #0064e0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
  background-color: #0056c2;
}

.btn-primary:disabled {
  background-color: #14385c;
  color: #6986a3;
  cursor: default;
}

.forgot-link {
  display: block;
  text-align: center;
  margin: 18px 0 36px;
  color: #e0e6eb;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

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

.secondary-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-fb,
.btn-create {
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-fb {
  border: 1px solid #374650;
  color: #f5f5f5;
  background-color: transparent;
}

.btn-fb:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-create {
  border: 1px solid #2b6cb0;
  color: #4ea1ff;
  background-color: transparent;
}

.btn-create:hover {
  background-color: rgba(78, 161, 255, 0.08);
}

.meta-brand {
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #b0bcc4;
  letter-spacing: 0.3px;
}

/* --- Footer --- */
.site-footer {
  background-color: #0b1014;
  padding: 20px 16px 28px;
  text-align: center;
  font-size: 12px;
  color: #7d8992;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
  margin-bottom: 12px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.footer-links a {
  color: #7d8992;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* --- Responsive Mobile & Tablet View --- */
@media (max-width: 900px) {
  .showcase-pane {
    display: none;
  }

  .login-pane {
    width: 100%;
    border-left: none;
    background-color: #152127;
    align-items: flex-start;
    padding: 48px 24px 36px;
  }

  .login-box {
    margin: 0 auto;
    max-width: 400px;
  }

  .mobile-glyph {
    display: flex;
  }

  .login-heading {
    display: block;
  }
}
