/* ============================================================================
   INPUTS.CSS - Estilos para campos de entrada
   ============================================================================ */

/* --- CONTAINER DO CAMPO --- */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* --- LABEL --- */
.field-label {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  cursor: text;
  transition: top 0.2s ease, transform 0.2s ease, font-size 0.2s ease, color 0.2s ease;
  pointer-events: none;
  display: block;
}

/* Label flutuante: sobe para o topo do input quando focado ou preenchido */
.field-box.is-active .field-label {
  top: 9px;
  transform: translateY(0);
  font-size: 12px;
}

/* --- BOX WRAPPER (contém input + toggle) --- */
.field-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1000px;
  padding: 0 18px;
  transition: all 0.2s ease;
  height: 56px;
  margin-top: 6px;
}

/* 
.field-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.1);
} */

.field-box.is-active {
  border-color: var(--text);
  border-width: 2px;
}

/* .field-box.is-invalid {
  border-color: var(--error);
} */

/* --- CONTEÚDO DO INPUT (label + input) --- */
.field-box-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 0;
}

/* --- INPUT --- */
.field-input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  padding: 16px 0;
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: padding 0.2s ease;
}

.field-box.is-active .field-input {
  padding: 24px 0 8px;
}

.field-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* --- TOGGLE ICON (eye) --- */
.field-toggle-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-left: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  display: none;
}

.field-box.is-active .field-toggle-icon {
  display: block;
}

.field-toggle-icon:hover {
  color: var(--primary);
}

/* --- MENSAGEM DE ERRO --- */
.field-message {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--error);
  margin-top: 4px;
}

.field-message.hidden {
  display: none;
}

.field-message-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.field-message-text {
  flex: 1;
}

/* --- HELPER TEXT --- */
.field-helper-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- CHECKBOX CUSTOMIZADO --- */
.remember-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  width: 100%;
}

.remember-label {
  font-size: 16px;
  cursor: pointer;
  font-weight: 400;
  color: var(--text);
}

.checkbox-container {
  position: relative;
  width: 48px;
  height: 28px;
}

.remember-checkbox {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}

.checkbox-toggle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid #2c2c2c;
  border-radius: 14px;
  background: #e4e4e4;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.checkbox-ball {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #353535;
  position: absolute;
  left: 3px;
  transition: left 0.3s ease, background-color 0.3s ease;
}

