@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500&family=Open+Sans:wght@300;400;500;600&display=swap');
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
  font-size: 16px;
}

body {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0c0ce94d;
}

.container {
    width: 80%;
    height: 80vh;
    display: flex;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.212);
}

.form-image {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fde3a7d7;
    padding: 1rem;
}

.form-image img {
    width: 31rem;
}

.form {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 3rem;
}

.form, .form-image {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.form.visible {
    opacity: 1;
    transform: translateY(0);
}

.visible{
    opacity: 1;
    transform: translateY(0);
}

.form-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    margin-bottom: 2rem;
}

.form-header .title h1 {
    position: relative; 
    margin: 0;
}

.form-header .title h1::after {
    content: '';
    display: block;
    width: 5rem;
    height: 0.3rem;
    background-color: #6c63ff;
    margin-top: 0.5rem;
    border-radius: 10px;
}

.login-button {
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.login-button button {
    display: inline-block;
    border: none;
    background-color: #6c63ff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    color: #fff;
}

.login-button button:hover {
    background-color: #6b63fff1;
}

.login-button button a {
    text-decoration: none;
    color: #fff;
    display: block;
}

.form-header h1::after {
    content: '';
    display: block;
    width: 5rem;
    height: 0.3rem;
    background-color: #6c63ff;
    margin: 0 auto;
    position: absolute;
    border-radius: 10px;
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 1rem 0 0.5rem 0; 
}

.input-box {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.1rem;
}

/* 🔹 Animação inicial - os campos começam invisíveis */
.input-box {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* 🔹 Quando a classe .visible for adicionada, os campos aparecem suavemente */
.input-box.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 🔹 Efeito ao clicar no campo */
.input-box input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

/* 🔹 Quando o usuário clicar, o campo cresce e muda de cor */
.input-box input:focus {
    border-color: #6c63ff; /* Verde (ou outra cor do seu design) */
    box-shadow: 0 0 10px rgba(108, 99, 255, 1);
    transform: scale(1.05);
    outline: none;
}

.input-box input {
    margin: 0.6rem 0;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 10px;
    box-shadow: 1px 1px 6px #0000001c;
    font-size: 0.8rem;
}

.input-box input:hover {
    background-color: #eeeeee75;
}

.input-box input:focus-visible {
    outline: 1px solid #6c63ff;
}

.input-box label,
.gender-title h6 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #000000c0;
}

.input-box input::placeholder {
    color: #000000be;
}

.gender-group {
    display: flex;
    justify-content: space-between;
    margin-top: 0.62rem;
    padding: 0 .5rem;
}

.gender-input {
    display: flex;
    align-items: center;
}

.gender-input input {
    margin-right: 0.35rem;
}

.gender-input label {
    font-size: 0.81rem;
    font-weight: 600;
    color: #000000c0;
}

.continue-button button {
    width: 100%;
    font-size: 0.93rem;
    font-weight: 500;
    color: #fff;
    background-color: #6c63ff;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.continue-button button:hover {
    background-color: #6b63fff1;
}

.continue-button button a {
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 500;
    color: #fff;
}

.continue-button:active{
    transform: scale(0.9);
}

.error {
    border: 2px solid red;
}

.shake {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

/* Estiliza o fundo escuro de fundo */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

/* Estiliza a caixinha do popup */
.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
    max-width: 400px;
}

/* Animação de entrada */
@keyframes fadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Botão estilizado */
.popup-content button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.popup-content button:hover {
    background: #45a049;
}

.gender-inputs {
    margin-bottom: 1.2rem;
}

/* — Até 1330px: layout “laptop grande” de 1330px até 894px */
@media screen and (max-width: 1330px) {
  .form-image {
    display: none;
  }
  .container {
    width: 50%;
  }
  .form {
    width: 100%;
  }
}

/* — Até 893px: layout “mobile” */
@media screen and (max-width: 893px) {
  /* Container full-width, coluna única */
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    flex-direction: column;
  }

  /* Oculta a imagem */
  .form-image {
    display: none;
  }

  /* Form full-width e padding reduzido */
  .form {
    width: 100%;
    padding: 1.5rem 0.5rem;
  }

  /* Cabeçalho centralizado */
  .form-header {
    align-items: center;
  }
  .form-header .title h1 {
    width: 100%;
    text-align: center;
    font-size: 1.75rem;
  }
  .login-button {
    position: static;
    margin: 1rem auto;
  }

  /* Inputs e opções empilhados */
  .input-group,
  .gender-group {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin-bottom: 1.2rem;
  }
  .input-box,
  .gender-input {
    width: 100%;
    margin-bottom: 1rem;
  }

  /* Botão continuar full-width */
  .continue-button button {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }
}
