/* =========================================================
   login.css
   Tela de acesso — mesma identidade "pinho + âmbar" do sistema
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #F5F7F6;
  --surface: #FFFFFF;
  --surface-alt: #EEF3F1;

  --ink: #1F2A28;
  --ink-soft: #5C6B68;
  --ink-faint: #8B9B98;

  --primary: #0E5C56;
  --primary-dark: #0A433F;
  --primary-soft: #E4EFEC;

  --accent-amber: #C98A3B;
  --accent-amber-soft: #F6E9D6;

  --border: #DDE4E2;

  --shadow-sm: 0 1px 2px rgba(15, 45, 42, 0.05);
  --shadow-md: 0 2px 8px rgba(15, 45, 42, 0.06), 0 10px 28px rgba(15, 45, 42, 0.05);
  --shadow-lg: 0 20px 60px rgba(10, 67, 63, 0.18);

  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --font-display: 'Fraunces', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- shell ---------- */

.login-shell {
  width: 100%;
  max-width: 920px;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ---------- brand panel ---------- */

.login-brand {
  position: relative;
  background: var(--primary-dark);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.05) 0, transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(201, 138, 59, 0.18) 0, transparent 50%);
  color: #EAF2F0;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9) 55%, transparent);
          mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9) 55%, transparent);
  opacity: 0.5;
}

.login-brand__top,
.login-brand__bottom {
  position: relative;
  z-index: 1;
}

.login-brand__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-amber);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-brand__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
}

.login-brand h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.25;
  margin: 18px 0 0;
  max-width: 22ch;
}

.login-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(234, 242, 240, 0.72);
  margin: 6px 0 0;
  max-width: 30ch;
}

/* ---------- form panel ---------- */

.login-form-panel {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-panel__header {
  margin-bottom: 28px;
}

.login-form-panel__header span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.login-form-panel__header h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  margin: 6px 0 0;
  color: var(--ink);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.login-form input::placeholder { color: var(--ink-faint); }

.login-form input:hover { border-color: #C6D2CF; }

.login-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.btn-primary {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: #FFFFFF;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.15s ease, transform 0.1s ease;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: translateY(1px); }

.login-alt {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
}

.login-alt a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.login-alt a:hover { text-decoration: underline; }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 420px;
    min-height: 0;
  }
  .login-brand { display: none; }
  .login-form-panel { padding: 40px 28px; }
}