/* ==============================
   VARIÁVEIS DE COR E BASE
============================== */
:root {
  --cor-verde: #00923f;
  --cor-branco: #ffffff;
  --cor-texto: #333333;
  --cor-botao: #28a745;
  --cor-botao-hover: #218838;
}

/* ==============================
   BASE GERAL
============================== */
/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  display: flex;
  min-height: 100vh;
}

.container {
  display: flex;
  width: 100%;
}

/* ==============================
   LADO ESQUERDO
============================== */
.left-side {
  background-color: var(--cor-verde);
  color: var(--cor-branco);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
}

.left-side .logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.left-side img {
  width: 180px;
  height: auto;
  margin-bottom: 15px;
}

.left-side h1 {
  font-size: 2.2em;
  font-weight: 700;
  margin: 10px 0;
}

.left-side p {
  max-width: 600px;
  font-size: 0.95em;
  line-height: 1.6;
}

/* ==============================
   LADO DIREITO
============================== */
.right-side {
  flex: 1;
  background-color: var(--cor-branco);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  box-sizing: border-box;
}

.ifal-logo {
  width: 250px;
  height: auto;
}

.right-side h2 {
  color: var(--cor-texto);
  font-size: 1.6em;
  margin-bottom: 25px;
}

.right-side p {
  width: 380px;
}

form {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}

form label {
  text-align: left;
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--cor-texto);
}

form input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.95em;
  box-sizing: border-box;
}

form input:focus {
  border-color: var(--cor-verde);
  outline: none;
}

.forgot-password {
  text-align: left;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.forgot-password a {
  color: var(--cor-verde);
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* ==============================
   BOTÃO
============================== */
button {
  background-color: var(--cor-botao);
  color: var(--cor-branco);
  border: none;
  border-radius: 5px;
  padding: 12px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: var(--cor-botao-hover);
}

/* ==============================
   LINK DE CADASTRO
============================== */
.registro {
  margin-top: 15px;
  font-size: 0.9em;
  color: var(--cor-texto);
}

.registro a {
  color: var(--cor-verde);
  text-decoration: none;
  font-weight: 600;
}

.registro a:hover {
  text-decoration: underline;
}

/* ==============================
   RESPONSIVIDADE
============================== */
@media (max-width: 900px) {
  body {
    flex-direction: column;
  }

  .container {
    flex-direction: column;
  }

  /* LADO ESQUERDO */
  .left-side {
    width: 100%;
    padding: 25px 15px;
  }

  /* some o texto p */
  .left-side p {
    display: none;
  }

  /* logo e nome lado a lado */
  .left-side .logo-area {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .left-side img {
    width: 70px;
    margin-bottom: 0;
  }

  .left-side h1 {
    font-size: 1.8em;
    margin: 0;
  }

  /* LADO DIREITO */
  .right-side {
    width: 100%;
    padding: 40px 20px;
  }

  .ifal-logo {
    width: 210px;
    margin-bottom: 20px;
  }

  form {
    max-width: 320px;
  }

  .right-side p {
    width: 320px;
  }
}
