/* ==================== */
/* TEXT FIELD           */
/* ==================== */

/* Container geral do input e label */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

/* Label do input */
.input-label {
  color: var(--input-primary-default-foreground);
  font-weight: 600;
}

/* Wrapper para posicionar o ícone dentro do input */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Ícone de prefixo */
.input-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: var(--input-primary-default-foreground);
  transition: color 0.2s ease;
  pointer-events: none;
}

/* Campo de digitação */
.input-control {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 16px 16px 44px;
  background-color: var(--input-primary-default-background);
  color: var(--input-primary-focus-foreground);
  caret-color: var(--input-primary-focus-foreground);
  
  /* Borda Enabled */
  border: 1px solid var(--input-primary-active-border);
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
}

/* Placeholder (Hint) */
.input-control::placeholder {
  color: var(--input-primary-default-foreground);
}

/* ==================== */
/* TEXT FIELD: STATUS  */
/* ==================== */

/* Focused */
.input-control:focus {
  border-color: var(--input-primary-focus-border);
  box-shadow: inset 0 0 0 1px var(--input-primary-focus-border);
}

.input-wrapper:focus-within .input-icon {
  color: var(--input-primary-focus-foreground);
}

/* Error */
.input-group.is-error .input-control {
  border-color: var(--error-background);
}

.input-group.is-error .input-control:focus {
  box-shadow: inset 0 0 0 1px var(--error-background);
}

.input-group.is-error .input-icon {
  color: var(--error-background);
}

.error-text {
  color: var(--error-background);
  margin-top: 4px;
}

/* ==================== */
/* CHECKBOX             */
/* ==================== */

/* Container do checkbox */
.checkbox-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.checkbox-input {
  display: none;
}

.checkbox-box {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1.5px solid var(--check-primary-default-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.checkbox-inner {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.checkbox-icon {
  width: 20px;
  height: 20px;
  color: var(--check-primary-active-foreground);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

/* O texto do Checkbox */
.checkbox-label {
  color: var(--check-primary-active-foreground);
  font-weight: 500;
}

/* ==================== */
/* CHECKBOX: STATUS    */
/* ==================== */

.checkbox-input:checked + .checkbox-box {
  border-color: var(--check-primary-active-border);
}

.checkbox-input:checked + .checkbox-box .checkbox-inner {
  background-color: var(--check-primary-active-background);
}

.checkbox-input:checked + .checkbox-box .checkbox-icon {
  opacity: 1; /* Mostra o ícone */
  transform: scale(1); /* Animação suave de entrada */
}