/* SISGEP — Login (visual alinhado à página início) */

:root {
  --energisa-azul: #0D2A5E;
  --energisa-ciano: #009BAA;
  --energisa-lima: #C8D400;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --border: #e3e7ec;
  --text: #1f2937;
  --text-soft: #6b7280;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Calibri', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg-soft);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font-family: inherit;
}

/* ── Layout ─────────────────────────────────────────── */

.login-layout {
  display: flex;
  height: 100vh;
}

/* ── Painel da marca (esquerda) ─────────────────────── */

.brand-panel {
  flex: 1;
  background: var(--energisa-azul);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 95% 5%, rgba(0, 155, 170, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 0% 100%, rgba(200, 212, 0, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.brand-panel::after {
  content: '';
  position: absolute;
  bottom: -140px;
  right: -100px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.brand-panel-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.brand-panel-deco::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.06);
}

.brand-panel-deco::after {
  content: '';
  position: absolute;
  top: 24%;
  left: 8%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(0, 155, 170, 0.18);
}

.brand-panel .brand-logo {
  position: relative;
  z-index: 1;
}

.brand-logo {
  height: 160px;
  width: auto;
  max-width: 90%;
  display: block;
  filter: brightness(0) invert(1);
}

/* ── Painel do formulário (direita) ─────────────────── */

.form-panel {
  width: 480px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  background: var(--bg-soft);
}

.form-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px 36px 36px;
  box-shadow: 0 8px 24px rgba(13, 42, 94, 0.08);
}

.form-header {
  margin-bottom: 32px;
}

.form-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--energisa-azul);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.form-accent {
  height: 4px;
  width: 48px;
  background: var(--energisa-lima);
  border-radius: 2px;
  margin-bottom: 14px;
}

.subtitle {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

/* ── Campos ─────────────────────────────────────────── */

.field-group {
  margin-bottom: 20px;
}

.field-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.field-group input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  color: var(--text);
  background: var(--bg-soft);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field-group input::placeholder {
  color: #9ca3af;
}

.field-group input:focus {
  border-color: var(--energisa-ciano);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(0, 155, 170, 0.12);
}

/* ── Erro ───────────────────────────────────────────── */

.error-message {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* ── Botão submit ───────────────────────────────────── */

.btn-submit {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
  background: var(--energisa-ciano);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-submit:hover:not(:disabled) {
  background: var(--energisa-azul);
  box-shadow: 0 4px 14px rgba(13, 42, 94, 0.25);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ── Responsivo ─────────────────────────────────────── */

@media (max-width: 900px) {
  .brand-panel {
    display: none;
  }

  .form-panel {
    width: 100%;
    padding: 32px 24px;
  }

  .form-card {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 420px) {
  .form-card {
    padding: 32px 24px 28px;
    border-radius: 12px;
  }

  .form-header h1 {
    font-size: 24px;
  }
}
