:root {
  --page: #c48984;
  --card: #f6f7fb;
  --ink: #1d1e24;
  --muted: #8d93a0;
  --line: #e6e8ef;
  --field: #ffffff;
  --button: #8d6472;
  --button-ink: #ffffff;
  --danger: #9d3048;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: var(--page);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.shell {
  width: min(980px, 100%);
}

.card {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: 560px;
  background: var(--card);
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(92, 42, 42, 0.22);
  overflow: hidden;
}

.form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 58px;
}

h1 {
  margin: 0;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.lede {
  margin: 28px 0 18px;
  color: var(--ink);
  font-size: 14px;
}

label {
  display: block;
  margin-top: 14px;
}

.field {
  position: relative;
}

input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

input::placeholder { color: #b0b5c0; }

input:focus {
  outline: 2px solid rgba(141, 100, 114, 0.35);
  border-color: #c7a3ae;
}

.field input { padding-right: 46px; }

.eye {
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #9aa0ab;
  cursor: pointer;
}

.error {
  margin: 14px 0 0;
  color: var(--danger);
  font-size: 14px;
}

button[type="submit"] {
  margin-top: 22px;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--button);
  color: var(--button-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:hover { background: #7d5664; }

.art {
  position: relative;
  margin: 18px 18px 18px 0;
  border-radius: 22px;
  overflow: hidden;
  background: #f3c9a4;
}

.art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 36px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(40, 20, 40, 0.25);
}

@media (max-width: 800px) {
  body { padding: 16px; }

  .card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .form { padding: 36px 22px 28px; }

  .art {
    margin: 0 16px 16px;
    height: 240px;
  }

  .caption { font-size: 18px; bottom: 22px; }
}
