/* Reset ligero */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Variables para fácil escalado */
:root {
    --bg-color: #f2f4f8;
    --card-bg: #ffffff;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --text-main: #1f2933;
    --text-muted: #6b7280;
    --error: #dc2626;
    --success: #16a34a;
    --radius: 10px;
}

/* Base */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

/* Botón principal */
.btn,
button {
	display: inline-block;
	padding: 12px 22px;
	background-color: var(--primary);
	color: #ffffff;
	border: none;
	border-radius: var(--radius);
	text-decoration: none;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:hover,
button:hover {
	background-color: var(--primary-hover);
}

.btn:active,
button:active {
	transform: scale(0.97);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Contenido principal */
main {
    max-width: 600px;
    text-align: center;
}

main p {
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Título del formulario */
h2 {
    margin-bottom: 20px;
    text-align: center;
}

/* Formulario */
form {
    background-color: var(--card-bg);
    padding: 30px;
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Labels e inputs */
label {
    display: block;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border-radius: var(--radius);
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

/* Mensajes */
#message {
    margin-top: 18px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

/* Mensaje de error o éxito (preparado para backend) */
.error {
    color: var(--error);
}

.success {
    color: var(--success);
}

/* Responsive */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    form {
        padding: 22px;
    }
}