@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --ink: #0E1B18;
  --ink-panel: #142723;
  --brass: #B98B4E;
  --brass-soft: #D9B679;
  --parchment: #EFE7D8;
  --parchment-dim: #E4DAC6;
  --ink-text: #1B2A27;
  --muted: #7C8F89;
  --error: #A33D2E;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--ink-text);
}

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

/* ---- Painel esquerdo: marca ---- */
.brand-panel {
  flex: 0 0 42%;
  background: var(--ink);
  color: var(--parchment);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 64px;
  position: relative;
  overflow: hidden;
}

.brand-mark {
  width: 84px;
  height: 84px;
}

.brand-mark path {
  stroke: var(--brass-soft);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw 1.6s ease forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark path { animation: none; stroke-dashoffset: 0; }
}

.brand-copy h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 32px 0 16px;
  max-width: 9.5em;
}

.brand-copy p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 32ch;
}

.brand-panel .foot-note {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* ---- Painel direito: formulário ---- */
.form-panel {
  flex: 1;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

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

.form-wrap h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.7rem;
  margin: 0 0 8px;
}

.form-wrap .sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 36px;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink-text);
}

.field {
  margin-bottom: 20px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: 'IBM Plex Sans', sans-serif;
  border: 1px solid #C9BC9F;
  background: #FBF8F2;
  border-radius: 3px;
  color: var(--ink-text);
  transition: border-color 0.15s ease;
}

input:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(185, 139, 78, 0.18);
}

.btn-primary {
  width: 100%;
  padding: 13px 14px;
  margin-top: 8px;
  background: var(--ink);
  color: var(--parchment);
  border: none;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-primary:hover { background: #1C332D; }
.btn-primary:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.alert {
  background: #F5E6E1;
  border: 1px solid var(--error);
  color: var(--error);
  padding: 10px 14px;
  border-radius: 3px;
  font-size: 0.88rem;
  margin-bottom: 22px;
}

.divider-line {
  height: 1px;
  background: #C9BC9F;
  margin: 28px 0;
}

.helper-text {
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .layout { flex-direction: column; }
  .brand-panel { flex: none; padding: 40px 32px; }
  .brand-copy h1 { font-size: 2rem; }
  .form-panel { padding: 32px 24px; }
}
