@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&family=The+Seasons&display=swap');

/*  FONTES  */
@font-face {
  font-family: 'Cancao do Vento';
  src: url('../fonts/WindSong-Medium.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/*  BASE GLOBAL  */
/* Página inteira (html + body) */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
}

/* Reset global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: Arial, sans-serif;
}

/*  LOGIN  */
/* Container da página de login */
.login-container {
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background-color: #fafafa;
}

/* Caixa principal de login */
.login-box {
    width: 380px;
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 2; /* fica à frente das flores */
}

/* Botão principal (Entrar/Registar/Confirmar) */
.btn {
    margin-top: 25px;
    border-radius: 40px;
    padding: 6px 14px;
    font-size: 40px;
    letter-spacing: 3px;
    cursor: pointer;
    border: none;
    color: #3d0f24;

    background-color: #ffffff;
    background-image: url('../imagens/flor_fundo.png');
    background-size: 85px 50px;
    background-position: center;
    background-repeat: no-repeat;

    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    font-family: 'Cancao do Vento', cursive;
}

.btn:active {
    transform: scale(0.98);
}

/* Textos auxiliares do login */
p.small {
  margin-top: 20px;
  font-size: 16px;
  position: relative;
  z-index: 1;
}

a.link {
  color: #3d0f24;
  text-decoration: none;
}

p.error {
  color: red;
  margin-top: 10px;
  font-size: 16px;
}

/*  REGISTRO  */
/* Container geral da página de registo */
.register-page {
  display: flex;
  justify-content: center;  
  align-items: center;     
  min-height: 100vh;
  position: relative;
  background: #fff;
  font-family: 'Montserrat', sans-serif;
  padding: 20px;
}

/* Formulário de registo */
.register-page form {
  position: relative;
  width: 100%;
  background: transparent;
  border-radius: 0;
  padding: 0;
  text-align: center;
  box-shadow: none;
  overflow: visible;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Título do formulário de registo */
.register-page h1 {
  font-family: 'The Seasons', cursive;
  font-size: 46px;
  color: #3d0f24;
  margin-bottom: 20px;
}

/* Labels dos campos (registo) */
.register-page label {
  display: block;
  margin-top: 15px;
  font-size: 18px;
  color: #3d0f24;
  text-align: center;
  width: 100%;
}

/* Inputs de texto/email/password (registo) */
.register-page input[type="text"],
.register-page input[type="email"],
.register-page input[type="password"] {
  width: 80%;
  padding: 12px;
  margin-top: 5px;
  border-radius: 25px;
  border: none;
  font-size: 16px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Linha da checkbox (aceitação de regras) */
.checkbox-label {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  justify-content: center;
}

.checkbox-label .link {
  text-decoration: underline;
}

/* Botão do formulário de registo */
.register-page .btn {
  margin-top: 25px;
  border-radius: 40px;
  padding: 4px 10px;
  font-size: 40px;
  letter-spacing: 3px;
  cursor: pointer;
  border: none;
  color: #3d0f24;
  background-color: #ffffff;
  background-image: url('../imagens/flor_fundo.png');
  background-size: 85px 50px;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  font-family: 'Cancao do Vento', cursive;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Texto pequeno abaixo do formulário (registo) */
.register-page .small {
  margin-top: 20px;
  font-size: 16px;
  position: relative;
  z-index: 1;
  text-align: center;
}
.register-page .small .link {
  color: #3d0f24;
  text-decoration: underline;
}

.register-page .error {
  color: red;
  margin-top: 10px;
  font-size: 16px;
}

/* ================= RESET DE PASSWORD ================= */
.login-container.reset-layout {
  width: 100%;
  justify-content: center !important;
  align-items: center !important;
  position: relative;
}

.login-container.reset-layout .login-box {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.login-container.reset-layout .login-box h1,
.login-container.reset-layout .login-box .small,
.login-container.reset-layout .login-box form {
  width: 100%;
  text-align: center;
}

.login-container.reset-layout .login-box form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0;
}

.login-container.reset-layout .login-box label {
  width: 100%;
  text-align: center;
}

.login-container.reset-layout .login-box .btn,
.login-container.reset-layout .login-box input[type="email"],
.login-container.reset-layout .login-box input[type="text"],
.login-container.reset-layout .login-box input[type="password"] {
  width: 80%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.login-container.reset-layout .login-box .small {
  margin-top: 14px;
  font-size: 1em;
}

.login-container.reset-layout .flor-lateral.left {
  width: 320px;
  max-width: 40vw;
  height: auto;
  margin: 0;
  position: absolute;
  left: 32px;
  top: 28%;
  transform: translateY(-50%);
  z-index: 0;
}

.login-container.reset-layout .flor-lateral.right {
  width: 320px;
  max-width: 40vw;
  height: auto;
  margin: 0;
  position: absolute;
  right: 32px;
  top: 28%;
  transform: translateY(-50%);
  z-index: 0;
}

@media (max-width: 640px) {
  .login-container.reset-layout,
  .login-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .login-container.reset-layout .flor-lateral.left,
  .login-container.reset-layout .flor-lateral.right,
  .login-container .flor-lateral.left,
  .login-container .flor-lateral.right,
  .flor-lateral {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
  }
}
