/*//////////////////////////////////////////////////////////////////
[ Fontes locais ]*/

@font-face {
  font-family: Poppins-Regular;
  src: url('../fonts/poppins/Poppins-Regular.ttf');
}

@font-face {
  font-family: Poppins-Medium;
  src: url('../fonts/poppins/Poppins-Medium.ttf');
}

@font-face {
  font-family: Poppins-Bold;
  src: url('../fonts/poppins/Poppins-Bold.ttf');
}

@font-face {
  font-family: Montserrat-Bold;
  src: url('../fonts/montserrat/Montserrat-Bold.ttf');
}

/*//////////////////////////////////////////////////////////////////
[ Tokens ]*/

:root {
  --teal: #2bbbad;
  --teal-dark: #078172;
  /* Arte sazonal do painel esquerdo: aponte --login-bg para a imagem e
     troque o background de .login-brand pela linha comentada lá.
     Formato ideal da arte: coluna vertical (~metade da largura × altura
     total da tela), conteúdo importante centralizado. */
  --login-bg: url('/marca/login_fundo.webp');
  --panel-bg: #f1f5f9;
  --input-border: #d1d5db;
  --text-title: #1f2937;
  --text-label: #374151;
  --text-muted: #6b7280;
}

/*//////////////////////////////////////////////////////////////////
[ Reset mínimo ]*/

* {
  box-sizing: border-box;
}

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

body {
  font-family: Poppins-Regular, sans-serif;
  background: var(--panel-bg);
}

input,
button {
  outline: none;
  border: none;
  font-family: inherit;
}

button:hover {
  cursor: pointer;
}

/*//////////////////////////////////////////////////////////////////
[ Layout split ]*/

.login-page {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/*//////////////////////////////////////////////////////////////////
[ Painel esquerdo — branding ]*/

.login-brand {
  display: none;
  flex: 1 1 50%;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  /* background: linear-gradient(160deg, var(--teal), var(--teal-dark)); */
  background: #0f0f0f var(--login-bg) no-repeat center center;
  background-size: cover;
  color: #fff;
}

@media (min-width: 992px) {
  .login-brand {
    display: flex;
  }
}

.login-brand__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand__mark {
  width: auto;
  height: 56px;
}

.login-brand__eyebrow {
  font-family: Poppins-Medium, sans-serif;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  margin: 0 0 16px;
}

.login-brand__headline {
  font-family: Montserrat-Bold, sans-serif;
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 20px;
  max-width: 520px;
}

.login-brand__subtitle {
  font-family: Poppins-Regular, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .85);
  max-width: 460px;
  margin: 0;
}

.login-brand__footer {
  font-family: Poppins-Regular, sans-serif;
  font-size: 12px;
  letter-spacing: .15em;
  color: rgba(255, 255, 255, .6);
}

/*//////////////////////////////////////////////////////////////////
[ Painel direito — formulário ]*/

.login-panel {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-bg);
  padding: 48px 24px;
}

.login-form-col {
  width: 100%;
  max-width: 400px;
  animation: login-form-in .5s ease-out both;
}

@keyframes login-form-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-form-col {
    animation: none;
  }
}

.login-form-col__title {
  font-family: Poppins-Bold, sans-serif;
  font-size: 26px;
  color: var(--text-title);
  margin: 0 0 8px;
}

.login-form-col__subtitle {
  font-family: Poppins-Regular, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 28px;
}

/*//////////////////////////////////////////////////////////////////
[ Alerta de erro inline ]*/

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
}

.login-alert__icon {
  flex-shrink: 0;
  color: #b91c1c;
  margin-top: 2px;
}

.login-alert__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.login-alert__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: Poppins-Regular, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #b91c1c;
}

.login-alert__list li+li {
  margin-top: 4px;
}

/*//////////////////////////////////////////////////////////////////
[ Campos ]*/

.login-field {
  margin-bottom: 16px;
}

.login-field__label {
  display: block;
  font-family: Poppins-Medium, sans-serif;
  font-size: 14px;
  color: var(--text-label);
  margin-bottom: 6px;
}

.login-field__control {
  position: relative;
}

.login-field__icon {
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  color: #9ca3af;
  pointer-events: none;
}

.login-field__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.login-input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 16px 0 42px;
  font-family: Poppins-Regular, sans-serif;
  font-size: 15px;
  color: var(--text-title);
  background: #fff;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  transition: border-color .3s, box-shadow .3s;
}

.login-input::placeholder {
  color: var(--text-muted);
}

.login-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43, 187, 173, .18);
}

.login-input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/*//////////////////////////////////////////////////////////////////
[ Botão ]*/

.login-btn-wrap {
  margin-top: 24px;
}

.login-btn {
  width: 100%;
  height: 46px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-family: Montserrat-Bold, sans-serif;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .3s;
}

.login-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.login-btn:hover {
  background: var(--teal-dark);
}

.login-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/*//////////////////////////////////////////////////////////////////
[ Responsivo ]*/

@media (max-width: 480px) {
  .login-panel {
    padding: 32px 20px;
  }
}