/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}


.container {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 520px;
    text-align: center;
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
}

h1 {
    margin-bottom: 5px;
    font-size: 1.8em;
    color: #1f2937;
    font-weight: 600;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

button {
    padding: 12px 20px;
    border: none;
    background-color: #3b82f6;
    color: white;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #2563eb;
    transform: scale(1.05);
}

.credenciales {
    text-align: left;
    background-color: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    font-size: 0.95em;
    border: 1px solid #e5e7eb;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    animation: fadeIn 0.3s ease;
}

.credenciales p {
    margin: 10px 0;
    color: #374151;
}

.error {
    color: #ef4444;
    font-weight: 500;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Nueva animación para resultado */
.show-result {
    animation: popIn 0.4s ease forwards;
    opacity: 0;
    transform: scale(0.9);
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}


.accesos-rapidos {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 10px;
}

.accesos-rapidos a {
    flex: 1;
    padding: 10px;
    text-align: center;
    background-color: #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.accesos-rapidos a:hover {
    background-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nota-password {
    background-color: #fef3c7;
    color: #92400e;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9em;
    margin-bottom: 20px;
    border: 1px solid #fde68a;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.nota-password em {
    color: #b45309;
    font-style: normal;
}

.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 50%;
}

.whatsapp-icon:hover {
    transform: scale(1.1);
}

.subtitulo {
    font-size: 1em;
    color: #6b7280; /* gris suave */
    margin-bottom: 20px;
}

.info-credenciales {
    font-size: 0.85em;
    color: #1f2937; /* gris oscuro */
    margin: 15px 0;
    padding: 12px 15px;
    background-color: #e0f2fe; /* azul muy suave */
    border-left: 4px solid #0284c7; /* azul más fuerte */
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    font-style: italic;
}


@media (max-width: 480px) {
    .container {
        padding: 20px;
        max-width: 95%;
    }

    h1 {
        font-size: 1.4em;
    }

    .form-group {
        flex-direction: column;
        gap: 10px;
    }

    button, input[type="text"] {
        width: 100%;
        font-size: 1em;
    }

    .accesos-rapidos {
        flex-direction: column;
        gap: 10px;
    }

    .accesos-rapidos a {
        font-size: 1em;
        padding: 12px;
    }

    .credenciales, .nota-password {
        font-size: 1em;
    }
}
