/* =========================================================
   ANDRELÂNDIA — GUIA TURÍSTICO
   LOGIN.CSS

   ESTILO COMPARTILHADO DE AUTENTICAÇÃO
========================================================= */


/* =========================================================
   VARIÁVEIS
========================================================= */

:root {

  --login-verde: #194138;
  --login-verde-escuro: #091d1c;

  --login-fundo: #f5f3ef;
  --login-branco: #ffffff;

  --login-texto: #666a68;
  --login-texto-claro: #858987;
  --login-texto-escuro: #4f5452;

  --login-borda: #d8d8d4;

}


/* =========================================================
   ÁREA DE AUTENTICAÇÃO
========================================================= */

.auth-area {

  padding: 16px;

  background: #fff;

  border: 1px solid var(--login-borda);

  border-radius: 13px;

  text-align: center;

}


.auth-area p {

  margin: 0 0 13px;

  color: var(--login-texto);

  font-family:
    "Roboto",
    Arial,
    sans-serif;

  font-size: 11px;

  line-height: 1.6;

}


/* =========================================================
   BOTÕES DE AUTENTICAÇÃO
========================================================= */

.auth-buttons {

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 8px;

}


.auth-button {

  min-height: 42px;

  padding: 0 12px;

  border-radius: 9px;

  font-family:
    "Roboto",
    Arial,
    sans-serif;

  font-size: 11px;

  font-weight: 700;

  cursor: pointer;

  transition:
    opacity 0.15s ease,
    transform 0.15s ease;

}


.auth-button:hover {

  opacity: 0.92;

}


.auth-button:active {

  transform: scale(0.98);

}


/* =========================================================
   BOTÃO PRINCIPAL
========================================================= */

.auth-button.primary {

  border: 0;

  background:
    var(--login-verde);

  color: #fff;

}


/* =========================================================
   BOTÃO SECUNDÁRIO
========================================================= */

.auth-button.secondary {

  border: 1px solid var(--login-verde);

  background: #fff;

  color: var(--login-verde);

}


/* =========================================================
   FORMULÁRIO DO USUÁRIO LOGADO
========================================================= */

.user-rating-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;

  margin-bottom: 3px;

}


.form-label {

  display: block;

  margin-bottom: 3px;

  color: #929694;

  font-family:
    "Roboto",
    Arial,
    sans-serif;

  font-size: 9px;

  font-weight: 600;

  letter-spacing: 1px;

  text-transform: uppercase;

}


.user-rating-header strong {

  color: var(--login-texto-escuro);

  font-family:
    "Roboto",
    Arial,
    sans-serif;

  font-size: 12px;

  font-weight: 600;

}


/* =========================================================
   BOTÃO SAIR
========================================================= */

.logout-button {

  padding: 5px 8px;

  border: 0;

  background: transparent;

  color: #999;

  font-family:
    "Roboto",
    Arial,
    sans-serif;

  font-size: 9px;

  cursor: pointer;

}


.logout-button:hover {

  color: #c0392b;

}


/* =========================================================
   MODAL DE AUTENTICAÇÃO
========================================================= */

.auth-modal {

  position: fixed;

  inset: 0;

  z-index: 100000;

  display: none;

  align-items: center;

  justify-content: center;

  padding: 20px;

  background:
    rgba(9, 29, 28, 0.72);

  backdrop-filter:
    blur(4px);

  -webkit-backdrop-filter:
    blur(4px);

}


.auth-modal.open {

  display: flex;

}


/* =========================================================
   CONTEÚDO DO MODAL
========================================================= */

.auth-modal-content {

  position: relative;

  width: 100%;

  max-width: 390px;

  max-height:
    calc(100vh - 40px);

  overflow-y: auto;

  padding: 25px;

  background:
    var(--login-fundo);

  border-radius: 18px;

  box-shadow:
    0 20px 70px
    rgba(0, 0, 0, 0.25);

}


/* =========================================================
   BOTÃO FECHAR
========================================================= */

.auth-close {

  position: absolute;

  top: 12px;

  right: 12px;

  width: 34px;

  height: 34px;

  display: grid;

  place-items: center;

  padding: 0;

  border: 0;

  border-radius: 50%;

  background:
    rgba(0, 0, 0, 0.05);

  color: #555;

  font-family:
    "Roboto",
    Arial,
    sans-serif;

  font-size: 22px;

  line-height: 1;

  cursor: pointer;

  transition:
    background 0.15s ease,
    transform 0.15s ease;

}


.auth-close:hover {

  background:
    rgba(0, 0, 0, 0.09);

}


.auth-close:active {

  transform: scale(0.92);

}


/* =========================================================
   FORMULÁRIO
========================================================= */

.auth-form {

  width: 100%;

}


.auth-kicker {

  display: block;

  margin-bottom: 5px;

  color: #929694;

  font-family:
    "Roboto",
    Arial,
    sans-serif;

  font-size: 9px;

  font-weight: 600;

  letter-spacing: 1.3px;

  text-transform: uppercase;

}


.auth-form h2 {

  margin: 0 0 7px;

  color:
    var(--login-verde);

  font-family:
    "Roboto",
    Arial,
    sans-serif;

  font-size: 25px;

  font-weight: 600;

  line-height: 1.2;

}


.auth-form > p {

  margin: 0 0 18px;

  color:
    var(--login-texto);

  font-family:
    "Roboto",
    Arial,
    sans-serif;

  font-size: 11px;

  line-height: 1.6;

}


/* =========================================================
   CAMPOS
========================================================= */

.auth-form input {

  width: 100%;

  min-height: 43px;

  margin-bottom: 9px;

  padding: 11px 12px;

  border: 1px solid
    var(--login-borda);

  border-radius: 9px;

  outline: none;

  background: #fff;

  color:
    var(--login-texto-escuro);

  font-family:
    "Roboto",
    Arial,
    sans-serif;

  font-size: 12px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;

}


.auth-form input::placeholder {

  color: #a1a4a2;

}


.auth-form input:focus {

  border-color:
    var(--login-verde);

  box-shadow:
    0 0 0 2px
    rgba(25, 65, 56, 0.08);

}


/* =========================================================
   BOTÃO ENTRAR / CADASTRAR
========================================================= */

.auth-submit {

  width: 100%;

  min-height: 43px;

  margin-top: 3px;

  padding: 11px;

  border: 0;

  border-radius: 9px;

  background:
    var(--login-verde);

  color: #fff;

  font-family:
    "Roboto",
    Arial,
    sans-serif;

  font-size: 11px;

  font-weight: 700;

  cursor: pointer;

  transition:
    opacity 0.15s ease,
    transform 0.15s ease;

}


.auth-submit:hover {

  opacity: 0.92;

}


.auth-submit:active {

  transform: scale(0.98);

}


.auth-submit:disabled {

  opacity: 0.6;

  cursor: wait;

}


/* =========================================================
   MENSAGEM DE ERRO
========================================================= */

.auth-error {

  min-height: 17px;

  margin-top: 9px;

  color: #c0392b;

  font-family:
    "Roboto",
    Arial,
    sans-serif;

  font-size: 10px;

  line-height: 1.5;

}


/* =========================================================
   TROCA LOGIN / CADASTRO
========================================================= */

.auth-switch {

  margin-top: 15px !important;

  margin-bottom: 0 !important;

  text-align: center;

  color: #929694 !important;

}


.auth-switch button {

  padding: 0;

  border: 0;

  background: transparent;

  color:
    var(--login-verde);

  font-family:
    "Roboto",
    Arial,
    sans-serif;

  font-size: 11px;

  font-weight: 700;

  cursor: pointer;

}


.auth-switch button:hover {

  text-decoration: underline;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 599px) {

  .auth-modal {

    padding: 16px;

  }


  .auth-modal-content {

    max-width: 390px;

    padding: 22px;

    border-radius: 16px;

  }


  .auth-buttons {

    grid-template-columns: 1fr;

  }

}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 700px) {

  .auth-modal-content {

    max-width: 390px;

  }

}