/* =========================================================
   AniLog — поля формы записи
   ========================================================= */

.anime-form {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.form-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.form-field--fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
}

.form-legend {
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.required {
  color: var(--violet-light);
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.char-count {
  color: var(--muted-2);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.char-count.is-limit {
  color: var(--rose);
}

.form-hint {
  margin: -1px 0 0;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.5;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.input-shell__icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-shell input {
  width: 100%;
  height: 45px;
  padding: 0 13px 0 41px;
  border: 1px solid var(--border);
  border-radius: 13px;
  outline: 0;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 13px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.input-shell input::placeholder,
.textarea::placeholder {
  color: var(--muted-2);
}

.input-shell:hover input {
  border-color: rgba(255, 255, 255, 0.12);
}

.input-shell:focus-within .input-shell__icon {
  color: var(--violet-light);
}

.input-shell input:focus {
  border-color: rgba(167, 139, 250, 0.56);
  background: rgba(255, 255, 255, 0.052);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.09);
}

.input-shell input.is-invalid {
  border-color: rgba(251, 113, 133, 0.57);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.08);
}

.textarea {
  width: 100%;
  min-height: 104px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  outline: 0;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.textarea:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.textarea:focus {
  border-color: rgba(167, 139, 250, 0.56);
  background: rgba(255, 255, 255, 0.052);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.09);
}
