/* public/css/main.css — base + tela de login */
:root {
  --blue: #4f46e5;
  --blue-dark: #312e81;
  --orange: #f97316;
  --night: #0f172a;
  --cloud: #f1f5f9;
  --muted: #64748b;
  --border: #e2e8f0;
  --red: #ef4444;
  --green: #22c55e;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--night);
  background: var(--cloud);
}

/* ─── Brand ─── */
.brand {
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.5px;
}
.brand .accent {
  color: var(--orange);
}
.brand-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

/* ─── Login layout ─── */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.auth-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-hero h2 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 16px;
  max-width: 460px;
}
.auth-hero p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 420px;
  line-height: 1.6;
}
.hero-footer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
}
.auth-card h1 {
  font-size: 24px;
  margin: 0 0 4px;
}
.auth-card .lead {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 14px;
}

/* ─── Form ─── */
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  border: none;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.15s, transform 0.05s;
}
.btn:hover {
  filter: brightness(1.05);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.alert {
  display: none;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
}
.alert.show {
  display: block;
}
.alert-error {
  background: #fef2f2;
  color: var(--red);
  border: 1px solid #fecaca;
}
.alert-ok {
  background: #f0fdf4;
  color: var(--green);
  border: 1px solid #bbf7d0;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

@media (max-width: 860px) {
  .auth-wrap {
    grid-template-columns: 1fr;
  }
  .auth-hero {
    display: none;
  }
}
