@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600&family=Syne:wght@400;500;600;700&display=swap");

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

body {
  font-family: "Sora", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #121820;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

body.fade-out {
  opacity: 0;
}

a {
  text-decoration: none;
  color: #f0f0f0;
}

/* Botão principal */
.btn-default {
  background-color: #ff6dba;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #121820;
  cursor: pointer;
  gap: 8px;
  height: fit-content;
  transition: opacity 0.25s ease;
}

.btn-default:hover {
  opacity: 0.85;
  color: #121820;
}

/* Card do formulário */
#form_container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 380px;
  background: #161b24;
  border: 1px solid #262d3d;
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: 0 0 48px rgba(255, 109, 186, 0.08), 0 16px 40px rgba(0, 0, 0, 0.4);
}

#form_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#form_title {
  font-family: "Sora", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #f0f0f0;
  position: relative;
  padding-bottom: 8px;
}

#form_title::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  border-radius: 99px;
  background-color: #ff6dba;
  left: 0;
  bottom: 0;
}

#form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#input_container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(240, 240, 240, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}

.input-field {
  display: flex;
  align-items: center;
  background: #1e2534;
  border: 1px solid #262d3d;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.input-field i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  flex-shrink: 0;
  color: rgba(240, 240, 240, 0.3);
  font-size: 13px;
}

.form-control {
  padding: 11px 12px;
  width: 100%;
  border: none;
  background: transparent;
  font-family: "Sora", sans-serif;
  font-size: 14px;
  color: #f0f0f0;
  outline: none;
}

.form-control::placeholder {
  color: rgba(240, 240, 240, 0.2);
}

.input-field .password-icon {
  cursor: pointer;
  transition: color 0.2s;
}

.input-field .password-icon:hover {
  color: #ff6dba;
}

.form-control:focus {
  outline: none;
}

.input-box .input-field:focus-within {
  border-color: rgba(255, 109, 186, 0.5);
}

/* Autofill — mantém dark */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #1e2534 inset !important;
  -webkit-text-fill-color: #f0f0f0 !important;
}

/* Erros de validação */
.error {
  display: block;
  color: #f87171;
  font-size: 11px;
  margin-top: 5px;
  min-height: 16px;
}

.input-box.invalid .form-label {
  color: #f87171;
}

.input-box.invalid .input-field {
  border-color: #f87171;
}

.input-box.valid .form-label {
  color: #4ade80;
}

.input-box.valid .input-field {
  border-color: #4ade80;
}

/* Mobile */
@media screen and (max-width: 500px) {
  #form_container {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: none;
    padding: 40px 24px;
    justify-content: center;
  }
}
