/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* Fondo con un degradado azul moderno */
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
    color: #1e293b;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

h2 {
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 700;
    color: #1e3a8a; /* Azul marino destacado */
    text-align: center;
    letter-spacing: -0.3px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6; /* Azul brillante para los títulos de cada campo */
}

/* Regla para garantizar que TODOS los campos tengan exactamente el mismo tamaño */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100% !important;
    padding: 12px 16px;
    border: 2px solid #bfdbfe; /* Borde azul suave */
    border-radius: 8px;
    font-size: 14px;
    background-color: #f0f9ff; /* Fondo azul pastel muy tenue */
    color: #0f172a;
    outline: none;
    transition: all 0.25s ease;
    display: block;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    background-color: #ffffff;
    border-color: #2563eb; /* Azul intenso al escribir */
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); /* Botón en azul potente */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

button:active {
    transform: translateY(0);
}

/* Pantalla de resultados (procesar.php) */
.resultado-container {
    background: #ffffff;
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 480px;
    margin: 50px auto;
}

.resultado-container h2.exito {
    color: #059669;
}

.resultado-container h2.error {
    color: #dc2626;
}

.resultado-container p {
    font-size: 14px;
    color: #334155;
    margin-top: 10px;
}

.resultado-container code {
    display: block;
    background: #0f172a;
    color: #38bdf8; /* Azul cyan tipo terminal */
    padding: 14px;
    border-radius: 8px;
    font-size: 13px;
    word-break: break-all;
    margin-top: 12px;
    text-align: left;
    font-family: monospace;
}

.volver-link {
    display: inline-block;
    margin-top: 24px;
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.volver-link:hover {
    text-decoration: underline;
}