/* =========================================
   🧾 FORMS.CSS
   Formularios, inputs, selects, labels
   ========================================= */

/* =========================
   FORMULARIO BASE
========================= */
form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* =========================
   LABELS
========================= */
label {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

/* =========================
   INPUTS / SELECT / TEXTAREA
========================= */
input,
select,
textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    background: white;
    color: var(--color-text);
    transition: all 0.2s ease-in-out;
}

/* Focus */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* =========================
   INPUT DESHABILITADO
========================= */
input:disabled,
select:disabled,
textarea:disabled {
    background: #f1f1f1;
    color: #999;
    cursor: not-allowed;
}

/* =========================
   GRUPOS DE FORMULARIO
========================= */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

/* =========================
   FORMULARIOS EN COLUMNAS
========================= */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-full {
    grid-column: 1 / -1;
}

/* =========================
   FORMULARIOS CENTRADOS (LOGIN / CRUD SIMPLE)
========================= */
.form-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* =========================
   CHECKBOX / RADIO
========================= */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    transform: scale(1.1);
}