/* ============================================================
   LOGIN PAGE — Construtora Portellanato
   Extraído de registration/login.html
   ============================================================ */

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

:root {
  --green-dark:  #0f2318;
  --green-mid:   #16352c;
  --green-light: #2d5f4f;
  --accent:      #c85a54;
  --accent-dim:  rgba(200,90,84,0.18);
  --cream:       #f5f1e8;
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Lato', Arial, sans-serif;
}

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

body { display: flex; min-height: 100vh; }

/* ── LADO ESQUERDO ─────────────────────────── */
.l-panel {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 3.5rem;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(10,26,20,0.97) 0%, rgba(22,53,44,0.95) 60%, rgba(30,68,56,0.93) 100%),
    url('../images/obra_fundo.jpg') center/cover no-repeat;
  color: #fff;
}

/* Ornamento de fundo sutil */
.l-panel::before {
  content: '';
  position: absolute;
  right: -6rem;
  top: -6rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,90,84,0.12), transparent 68%);
  pointer-events: none;
}
.l-panel::after {
  content: '';
  position: absolute;
  left: -5rem;
  bottom: -5rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,95,79,0.22), transparent 70%);
  pointer-events: none;
}

/* Marca */
.l-brand { position: relative; z-index: 1; }
.l-brand-logo {
  height: 62px;
  padding: 0.5rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  margin-bottom: 1.4rem;
  display: inline-block;
}
.l-brand-logo img { height: 100%; display: block; }
.l-brand-name {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #fff;
}
.l-brand-sub {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* Conteúdo central do painel */
.l-center { position: relative; z-index: 1; }
.l-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.l-eyebrow::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.l-headline {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.2rem;
}
.l-headline em {
  font-style: normal;
  color: var(--accent);
}
.l-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.62);
  max-width: 32rem;
  margin-bottom: 2.5rem;
}

/* Lista de funcionalidades */
.l-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.l-features li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.78);
}
.l-feat-icon {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
}

/* Rodapé do painel */
.l-footer { position: relative; z-index: 1; }
.l-tagline {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ── LADO DIREITO ──────────────────────────── */
.r-panel {
  width: 460px;
  min-width: 380px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.8rem;
  position: relative;
}

/* Barra de acento vertical sutil */
.r-panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, transparent, var(--accent) 40%, transparent);
  opacity: 0.35;
}

.r-inner { width: 100%; max-width: 360px; }

.r-lock {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(22,53,44,0.1), rgba(200,90,84,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--green-mid);
  margin-bottom: 1.5rem;
}

.r-title {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green-mid);
  margin-bottom: 0.35rem;
  line-height: 1.1;
}
.r-subtitle {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 2.2rem;
}

/* Erro */
.r-error {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  border-radius: 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.86rem;
  margin-bottom: 1.4rem;
}
.r-error i { margin-top: 0.1rem; flex-shrink: 0; }

/* Campo */
.field-wrap { margin-bottom: 1.2rem; }
.field-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 0.5rem;
}
.field-input-wrap { position: relative; }
.field-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #cbd5e1;
  font-size: 0.85rem;
  pointer-events: none;
}
.field-input {
  width: 100%;
  height: 3.25rem;
  padding: 0 1rem 0 2.75rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: #1e293b;
  background: #fafcff;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}
.field-input:focus {
  border-color: var(--green-light);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45,95,79,0.1);
}
.field-input.has-toggle { padding-right: 3rem; }

/* Toggle senha */
.toggle-pw {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  padding: 0;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.toggle-pw:hover { color: var(--green-mid); }

/* Botão */
.btn-submit {
  width: 100%;
  height: 3.25rem;
  border: none;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--green-light), var(--green-mid));
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(22,53,44,0.25);
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.btn-submit:hover {
  opacity: 0.93;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(22,53,44,0.3);
}
.btn-submit:active { transform: translateY(0); }

/* Divider */
.r-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: #cbd5e1;
  font-size: 0.78rem;
}
.r-divider::before, .r-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* Segurança badge */
.r-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #94a3b8;
}
.r-security i { color: #22c55e; font-size: 0.8rem; }

/* Voltar */
.r-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #94a3b8;
  font-size: 0.82rem;
  text-decoration: none;
  margin-top: 1.8rem;
  transition: color 0.2s;
}
.r-back:hover { color: var(--green-mid); }

/* ── RESPONSIVO ───────────────────────────── */
@media (max-width: 900px) {
  body { flex-direction: column; }
  .l-panel {
    flex: none;
    padding: 2.5rem 2rem;
    min-height: 0;
  }
  .l-center, .l-features { display: none; }
  .l-panel::before, .l-panel::after { display: none; }
  .r-panel {
    width: 100%;
    min-width: unset;
    padding: 2.5rem 1.5rem;
  }
  .r-panel::before { display: none; }
}
