/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0d0d0d;
  --white: #ffffff;
  --gray:  #6b6b6b;
  --light: #f5f5f5;
  --border: #e0e0e0;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --transition: 1.4s ease-in-out;
}

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
}

/* ── Layout ───────────────────────────────────────────────── */
body {
  display: flex;
  min-height: 100vh;
}

.panel-left {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 64px 36px;
  min-height: 100vh;
}

.panel-right {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
}

/* ── Logo ─────────────────────────────────────────────────── */
.logo-wrap { display: flex; align-items: flex-start; }

.logo {
  width: 180px;
  max-width: 100%;
  object-fit: contain;
}

/* ── Main content ─────────────────────────────────────────── */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 460px;
  gap: 12px;
  padding: 40px 0;
}

.headline {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.subline {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 8px;
}

/* ── Form ─────────────────────────────────────────────────── */
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form input {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.form input::placeholder { color: #aaa; }

.form input:focus { border-color: var(--black); }

.form button {
  align-self: flex-start;
  padding: 13px 32px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 0.88rem;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.form button:hover  { background: #333; }
.form button:active { transform: scale(0.97); }
.form button:disabled { background: #aaa; cursor: not-allowed; }

/* ── Disclaimer & message ─────────────────────────────────── */
.disclaimer {
  font-size: 0.78rem;
  color: #aaa;
  line-height: 1.6;
  margin-top: 4px;
}

.form-message {
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 20px;
}

.form-message.success { color: #2e7d32; }
.form-message.error   { color: #c62828; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  font-size: 0.78rem;
  color: #bbb;
}

/* ── Slider ───────────────────────────────────────────────── */
.panel-right .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  /* gradient fallback shown when image is missing */
  background-color: #c9b8a8;
  opacity: 0;
  transition: opacity var(--transition);
}

.panel-right .slide:nth-child(1) { background-color: #c9b8a8; }
.panel-right .slide:nth-child(2) { background-color: #b5a898; }
.panel-right .slide:nth-child(3) { background-color: #d4c9bc; }

.panel-right .slide.active { opacity: 1; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  body { flex-direction: column; }

  .panel-right {
    order: -1;
    flex: 0 0 52vw;
    width: 100%;
    height: 52vw;
    min-height: 220px;
    max-height: 340px;
  }

  .panel-left {
    flex: 1;
    padding: 32px 28px 28px;
    min-height: unset;
  }

  .content { max-width: 100%; padding: 28px 0; }

  .form button { width: 100%; text-align: center; align-self: stretch; }
}

@media (max-width: 420px) {
  .panel-left { padding: 24px 20px 20px; }
  .headline { font-size: 2rem; }
}
