/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(208, 92%, 54%);
  --first-color-alt: hsl(208, 88%, 50%);
  --title-color: hsl(220, 68%, 4%);
  --white-color: hsl(0, 0%, 100%);
  --text-color: hsl(220, 15%, 66%);
  --body-color: hsl(0, 0%, 100%);
  --container-color: hsl(220, 50%, 97%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", system-ui;
  --big-font-size: 1.5rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --tiny-font-size: 0.688rem;
  --title-font-size: 1.5rem;
  --paragrafo-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --big-font-size: 3rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --tiny-font-size: 0.75rem;
    --title-font-size: 2.5rem;
    --paragrafo-font-size: 1.25rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

input,
button {
  border: none;
  outline: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

/* =============== LOGIN  =============== */
.login {
  position: relative;
  height: 100vh;
  align-items: center;
  overflow: hidden;
}

.login__blob {
  display: none;
}

.header-content-container {
  padding-block-end: 20px;
  display: flex; /* Ativa o Flexbox */
  align-items: center; /* Alinha a imagem e o texto verticalmente no centro */
  gap: 0.6rem; /* Adiciona um espaço de 2rem entre a imagem e o texto */
  max-width: 600px; /* Exemplo: limite a largura do container */
  margin: 0 auto; /* Centraliza o container na tela */
}

.header-image {
  max-width: 120px; /* Defina a largura máxima da imagem */
  height: auto; /* Mantém a proporção da imagem */
}

.header-text {
  flex: 1; /* Permite que este container ocupe todo o espaço restante */
  max-width: 340px;
}

/* Ajustes para o espaçamento do seu código original */
.login__title {
  margin-bottom: 0;
  color: black;
}

.paragrafo-title {
  margin-top: -25px;
}

.login__box {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--container-color);
  border-radius: 1rem;
}

.login__input {
  background: none;
  width: 100%;
  padding: 1.5rem 2.5rem 1.5rem 1.25rem;
  font-weight: var(--font-semi-bold);
  border: 3px solid transparent;
  border-radius: 1rem;
  z-index: 1;
  transition: border-color 0.4s;
}

.login__input:autofill {
  transition: background-color 6000s, color 6000s;
}

.login__label {
  position: absolute;
  left: 1.25rem;
  font-weight: var(--font-semi-bold);
  transition: transform 0.4s, font-size 0.4s, color 0.4s;
}

.login__icon {
  position: absolute;
  right: 1rem;
  font-size: 1.25rem;
  transition: color 0.4s;
}

.login__password {
  cursor: pointer;
  z-index: 10;
}

.login__forgot {
  display: block;
  width: max-content;
  margin: 1rem 0 0 auto;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--text-color);
  transition: color 0.4s;
}

.login__forgot:hover {
  color: var(--first-color);
}

.login__button {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  background-color: var(--first-color);
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding-block: 1.5rem;
  border-radius: 4rem;
  margin-block: 2rem;
  cursor: pointer;
  transition: background-color 0.4s, box-shadow 0.4s;
}

.login__button:hover {
  background-color: var(--first-color-alt);
  box-shadow: 0 8px 24px hsla(208, 92%, 32%, 0.3);
}

.login__social {
  margin-bottom: 2rem;
}

.login__social-title {
  text-align: center;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: 1rem;
}

.login__social-img {
  width: 1rem;
}

.login__social-links {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
}

.login__social-link {
  width: 32px;
  height: 32px;
  background-color: var(--body-color);
  box-shadow: 0 4px 8px hsla(0, 0%, 0%, 0.1);
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
  transition: transform 0.4s;
}

.login__social-link:hover {
  transform: translateY(-0.25rem);
}

.login__switch {
  text-align: center;
  font-size: var(--small-font-size);
}

.login__switch button {
  background: none;
  color: var(--first-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  cursor: pointer;
  transition: color 0.4s;
}

.login__switch button:hover {
  color: var(--first-color-alt);
}
/*
.app-stores {
  display: flex;
  cursor: pointer;
  padding-block-start: 22px;
}

.app-stores a {
  display: flex;
  vertical-align: text-top;
  color: #474fa0;
  font-weight: 500;
}

.app-stores a:hover {
  font-weight: 700;
}

.app-stores img {
  width: 100%;
  max-width: 60px;
  margin-right: 1rem;
  padding-left: 8px;
}*/

.app-stores {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  border: 2px solid #474fa0;
  border-radius: 50px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-stores:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.app-stores a {
  display: flex;
  align-items: center;
  color: #474fa0;
  font-weight: 500;
}

.app-stores a:hover {
  font-weight: 700;
}

.app-stores img {
  width: 40px;
  height: 40px;
}


.login__access,
.login__register {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  transition: transform 0.4s, opacity 0.4s 0.1s;
}

.login__register {
  transform: translateX(15rem);
  opacity: 0;
  pointer-events: none;
}

/* Input focus move up label */
.login__input:focus ~ .login__label {
  transform: translateY(-12px);
  font-size: var(--tiny-font-size);
}

.login__input:focus {
  padding-block: 2rem 1rem;
}

/* Input focus sticky top label */
.login__input:not(:placeholder-shown).login__input:not(:focus) ~ .login__label {
  transform: translateY(-12px);
  font-size: var(--tiny-font-size);
}

.login__input:not(:placeholder-shown).login__input:not(:focus) {
  padding-block: 2rem 1rem;
}

/* Input focus color */
.login__input:focus {
  border-color: var(--first-color);
}

.login__input:focus ~ .login__label,
.login__input:focus ~ .login__icon {
  color: var(--first-color);
}

/* Show hide login & create account */
.active .login__access {
  transform: translateX(15rem);
  opacity: 0;
  pointer-events: none;
}

.active .login__register {
  transform: translateX(0);
  opacity: 1;
  pointer-events: initial;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }
  
}
@media screen and (max-width: 540px) {
  .paragrafo-title {
    margin-top: 0px;
  }
}


/* For medium devices */
@media screen and (min-width: 540px) {
  .login__area {
    width: 380px;
    margin-inline: auto;
  }
}

@media screen and (min-width: 350px) and (max-height: 600px) {
  .login {
    height: 760px;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .login__area {
    width: 460px;
    margin: initial;
  }
  .login__access,
  .login__register {
    width: 600px;
  }
  .login__title {
    text-align: initial;
    margin-bottom: 3rem;
  }

  .logo {
    width: 30px;
  }
  .login__button {
    margin-bottom: 3rem;
  }
  .login__group {
    grid-template-columns: repeat(2, 1fr);
  }
  .login__blob {
    display: block;
    height: 100vh;
    position: absolute;
    top: 0;
    right: 0;
  }
  .login__img {
    transform: translate(0rem, 0rem);
  }
}

/*=============== CUSTOM MESSAGE BOX ===============*/
.custom-message-box {
    position: fixed;
    top: 20px; /* Posição no topo da tela */
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.938rem; /* Removido --normal-font-size para evitar erro se não definido */
    font-weight: 500; /* Removido --font-medium para evitar erro se não definido */
    color: var(--white-color); /* Você deve definir suas variáveis de cor */
    opacity: 0; /* Inicialmente invisível */
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    z-index: 1000; /* Garante que a mensagem fique acima de outros elementos */
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Espaço entre o ícone e o texto */
    box-shadow: 0 4px 12px hsla(var(--hue), 60%, 15%, 0.15); /* Sombra para destaque */
}

.custom-message-box.show {
    opacity: 1;
    visibility: visible;
}

/* Estilos para mensagens de sucesso */
.custom-message-box.success {
    background-color: var(--first-color); /* Ou um verde suave, por exemplo: #4CAF50 */
}

/* Estilos para mensagens de erro */
.custom-message-box.error {
    background-color: #f44336; /* Vermelho padrão para erro */
}

/* Estilos para mensagens de informação (se você quiser usar) */
.custom-message-box.info {
    background-color: #2196F3; /* Azul padrão para informação */
}

/* Estilo para o ícone dentro da mensagem */
.custom-message-box .message-icon {
    font-size: 1.25rem; /* Tamanho do ícone */
}

/* Você pode precisar definir estas variáveis de cor, se já não tiver */
:root {
    --first-color: hsl(200, 60%, 50%); /* Exemplo de cor primária para sucesso */
    --white-color: #fff;
    --hue: 200; /* Exemplo de hue para ajustar as sombras */
}