:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-dark: #1e293b;
  --text-main: #334155;
  --text-light: #64748b;
  --white: #ffffff;
  --error-red: #ef4444;
  --input-border: #94a3b8;
}

.login-header {
  margin-bottom: 40px;
  text-align: left;
}

.login-header h1 {
  font-size: 1.6rem;
  color: var(--bg-dark);
  margin-bottom: 6px;
}

.login-header p {
  color: var(--text-light);
  font-size: 0.95rem;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", sans-serif;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f8fafc;
}

.login-container {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* ── Painel Esquerdo — Formulário ── */
.login-form {
  width: 35%;
  height: 100%;
  padding: 80px 72px 120px 72px; /* Espaço inferior para o botão centralizado */
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  overflow-y: auto;
  flex-shrink: 0;
  position: relative;
}

.login-form > div {
  width: 100%;
  max-width: 380px;
}

/* ── Painel Direito — Imagem ── */
.login-image {
  width: 65%;
  height: 100%;
  background-color: #cbd5e1;
  border-radius: 30px 0 0 30px;
  overflow: hidden;
}

.login-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Logo ── */
.login-logo {
  width: 160px;
  height: 160px;
  margin: 0 auto 40px auto;
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Design dos Inputs ── */
.input-group {
  position: relative;
  margin-top: 16px;
  margin-bottom: 24px;
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 14px 45px 14px 16px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-main);
  background: transparent;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-input::placeholder {
  color: #cbd5e1;
}

/* O Rótulo (Usuário/Senha) fixo na linha da borda */
.input-group label {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(-50%);
  background-color: var(--white);
  padding: 0 6px;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
  transition: color 0.2s;
}

/* Fica azul quando o campo é clicado */
.form-input:focus {
  border-color: var(--primary-color);
  border-width: 2px;
}

.form-input:focus ~ label {
  color: var(--primary-color);
}

/* Ícones fixos dentro dos campos (Direita) */
.field-icon,
.toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1.1rem;
}

.toggle-password {
  cursor: pointer;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: var(--primary-color);
}

/* ── Botões e Links ── */
.login-button {
  background-color: var(--primary-color);
  color: white;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 10px;
  transition:
    background-color 0.2s,
    transform 0.1s;
}

.login-button:hover {
  background-color: var(--primary-hover);
}

.login-button:active {
  transform: scale(0.98);
}

.form-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.forgot-password-link,
.back-link {
  color: var(--text-light);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-password-link:hover,
.back-link:hover {
  color: var(--primary-color);
}

.back-link-container {
  margin-top: 25px;
  text-align: center;
}

/* ── Botão de Suporte Centralizado ── */
.support-button {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.support-button i {
  font-size: 2.2rem;
  color: var(--primary-color);
}

.support-button:hover {
  transform: translateX(-50%) translateY(-3px);
}

/* ── Utilitários e Seções ── */
.hidden-section {
  display: none;
}

.error-container {
  background-color: #fef2f2;
  border-left: 4px solid var(--error-red);
  color: #b91c1c;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 4px;
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

/* ── Estilo do Suporte ── */
.support-hero {
  text-align: center;
  margin-bottom: 28px;
}
.support-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}
.support-icon-wrap i {
  font-size: 1.6rem;
  color: white;
}
.support-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.support-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  background: #f8fafc;
  transition: all 0.2s;
}
.support-card:hover {
  border-color: var(--primary-color);
  background: #eff6ff;
}
.support-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.support-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
}
.support-card-value {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .login-image {
    display: none;
  }
  .login-form {
    width: 100%;
    padding: 40px 24px;
  }
}

/* Empurra o campo de email para baixo na tela de Esqueci a Senha */
#password-reset-section .login-header p {
  margin-bottom: 38px;
}
