/* forms.css — Form controls, buttons, input styles */

/* Keep dark background on browser-autofilled inputs (Chrome paints them white/yellow by default) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #0a0a0a inset !important;
    -webkit-text-fill-color: #e5e7eb !important;
    caret-color: #e5e7eb;
    transition: background-color 9999s ease-in-out 0s;
}

.form-label {
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    width: 100%;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    outline: none;
}

.form-select {
    background: #0a0a0a url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") right 0.5rem center/1.5em 1.5em no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.625rem 2.5rem 0.625rem 0.875rem;
    appearance: none;
    transition: all 0.2s;
}

.form-select:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    color: white;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.btn-primary:disabled,
.btn-primary.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    transform: none;
    box-shadow: none;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.input-dark {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    transition: all 0.2s;
}

.input-dark:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    outline: none;
}

.input-dark::placeholder {
    color: #4b5563;
}
