/* Facebook Login Clone – styles */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --fb-blue: #1877f2;
  --fb-blue-hover: #166fe5;
  --fb-green: #42b72a;
  --fb-green-hover: #36a420;
  --text-primary: #1c1e21;
  --text-secondary: #606770;
  --border: #dddfe2;
  --bg: #ffffff;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-pill: 999px;
  --font: "Segoe UI", Helvetica, Arial, sans-serif;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ── Left hero ── */

.hero {
  position: relative;
  flex: 1 1 55%;
  min-height: 100vh;
  padding: 24px 32px 48px;
  overflow: hidden;
}

.hero__logo {
  display: inline-block;
  line-height: 0;
}

.hero__content {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: calc(100% - 64px);
  max-width: 680px;
  margin: 0 auto;
  padding-top: 40px;
}

.hero__headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 280px;
  padding-bottom: 24px;
  z-index: 2;
}

.hero__headline-accent {
  color: var(--fb-blue);
}

/* ── Image collage ── */

.collage {
  position: relative;
  width: 340px;
  height: 420px;
  flex-shrink: 0;
  margin-right: -20px;
}

.collage__emoji {
  position: absolute;
  top: 8px;
  left: 52px;
  font-size: 2rem;
  z-index: 5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.collage__card {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #eee;
}

.collage__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage__card--plant {
  top: 36px;
  left: 0;
  width: 108px;
  height: 108px;
  z-index: 3;
}

.collage__card--skate {
  top: 160px;
  left: 8px;
  width: 96px;
  height: 96px;
  z-index: 2;
}

.collage__card--main {
  top: 24px;
  left: 88px;
  width: 200px;
  height: 320px;
  z-index: 4;
  border-radius: 16px;
}

.collage__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: #fff;
}

.collage__badge--shop {
  background: rgba(255, 255, 255, 0.9);
  color: #65676b;
}

.collage__badge--star {
  background: var(--fb-blue);
}

.collage__time {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(131, 58, 180, 0.85);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

.collage__story-bar {
  position: absolute;
  top: 8px;
  left: 12px;
  right: 12px;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.collage__story-bar-fill {
  display: block;
  width: 65%;
  height: 100%;
  background: #fff;
  border-radius: inherit;
}

.collage__heart {
  position: absolute;
  top: 140px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f02849;
  border-radius: 50%;
  box-shadow: var(--shadow);
  z-index: 6;
}

.collage__avatar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  z-index: 7;
}

.collage__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Right login panel ── */

.login-panel {
  flex: 0 0 45%;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  border-left: 1px solid #e4e6eb;
}

.login-panel__inner {
  width: 100%;
  max-width: 396px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.login-panel__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

/* ── Form ── */

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.0625rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input::placeholder {
  color: var(--text-secondary);
}

.field input:focus {
  border-color: var(--fb-blue);
  box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
}

.field--password {
  position: relative;
}

.field--password input {
  padding-right: 48px;
}

.field__toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s;
}

.field__toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.field__toggle svg line {
  stroke: currentColor;
}

.field__toggle .icon-eye--visible[hidden],
.field__toggle .icon-eye--hidden[hidden] {
  display: none;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 1.0625rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
}

.btn--primary {
  height: 48px;
  color: #fff;
  background: var(--fb-blue);
}

.btn--primary:hover {
  background: var(--fb-blue-hover);
}

.btn--secondary {
  height: 48px;
  color: var(--fb-blue);
  background: var(--bg);
  border: 1px solid var(--fb-blue);
  border-radius: var(--radius-pill);
}

.btn--secondary:hover {
  background: rgba(24, 119, 242, 0.06);
}

.login-panel__forgot {
  margin-top: 16px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-primary);
  text-decoration: none;
}

.login-panel__forgot:hover {
  text-decoration: underline;
}

.login-panel__divider {
  height: 1px;
  margin: 28px 0;
  background: transparent;
}

.login-panel__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 48px;
}

.meta-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fb-blue);
  letter-spacing: -0.01em;
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .page {
    flex-direction: column;
  }

  .hero {
    flex: none;
    min-height: auto;
    padding-bottom: 32px;
  }

  .hero__content {
    flex-direction: column-reverse;
    align-items: center;
    height: auto;
    gap: 32px;
  }

  .hero__headline {
    text-align: center;
    max-width: none;
    padding-bottom: 0;
  }

  .collage {
    margin-right: 0;
    transform: scale(0.9);
    transform-origin: center top;
  }

  .login-panel {
    flex: none;
    max-width: none;
    border-left: none;
    border-top: 1px solid #e4e6eb;
    padding: 32px 24px 48px;
  }
}

@media (max-width: 480px) {
  .collage {
    transform: scale(0.78);
  }

  .hero {
    padding: 16px 16px 24px;
  }

  .login-panel__inner {
    max-width: 100%;
  }
}
